Skip to content

Commit

Permalink
SS撮影時にエラーが出そうなところを調整
Browse files Browse the repository at this point in the history
  • Loading branch information
andanteyk committed Mar 15, 2015
1 parent 71e80eb commit f9587f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElectronicObserver/Window/FormBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ private void SaveScreenShot( string path, System.Drawing.Imaging.ImageFormat for
if ( target == null ) return false;
viewobj = target as IViewObject;
if ( viewobj == null ) return false;
width = int.Parse( target.width );
height = int.Parse( target.height );
if ( !int.TryParse( target.width, out width ) ) return false;
if ( !int.TryParse( target.height, out height ) ) return false;
return true;
};

Expand Down

0 comments on commit f9587f1

Please sign in to comment.