mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Made zoom move to a different location if it goes outside the screen. Also changed the Metro-App visibility property, this might work (up to an acceptable level) but is untested.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2284 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
a075a81daf
commit
831a3b4d5b
4 changed files with 57 additions and 35 deletions
|
@ -158,13 +158,13 @@ namespace Greenshot.Interop {
|
|||
try {
|
||||
comType = Type.GetTypeFromCLSID(guid);
|
||||
} catch (Exception ex) {
|
||||
LOG.Warn("Error type for " + progId, ex);
|
||||
LOG.WarnFormat("Error {1} type for {0}", progId, ex.Message);
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
comType = Type.GetTypeFromProgID(progId, true);
|
||||
} catch (Exception ex) {
|
||||
LOG.Warn("Error type for " + progId, ex);
|
||||
LOG.WarnFormat("Error {1} type for {0}", progId, ex.Message);
|
||||
}
|
||||
}
|
||||
object comObject = null;
|
||||
|
@ -175,7 +175,7 @@ namespace Greenshot.Interop {
|
|||
LOG.DebugFormat("Created new instance of {0} object.", progId);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LOG.Warn("Error creating object for " + progId, e);
|
||||
LOG.WarnFormat("Error {1} creating object for {0}", progId, e.Message);
|
||||
}
|
||||
}
|
||||
if (comObject != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue