mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Fixed exception when drawing the confluence destination toolstrip button, as the steam behind the image was disposed.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1725 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
ecbfd22eaf
commit
72fc31b915
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ namespace GreenshotConfluencePlugin {
|
||||||
static ConfluenceDestination() {
|
static ConfluenceDestination() {
|
||||||
Uri confluenceIconUri = new Uri("/GreenshotConfluencePlugin;component/Images/Confluence.ico", UriKind.Relative);
|
Uri confluenceIconUri = new Uri("/GreenshotConfluencePlugin;component/Images/Confluence.ico", UriKind.Relative);
|
||||||
using (Stream iconStream = Application.GetResourceStream(confluenceIconUri).Stream) {
|
using (Stream iconStream = Application.GetResourceStream(confluenceIconUri).Stream) {
|
||||||
confluenceIcon = Image.FromStream(iconStream);
|
using (Image tmpImage = Image.FromStream(iconStream)) {
|
||||||
|
confluenceIcon = ImageHelper.Clone(tmpImage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue