From f9587f1feeefe36bc5d8b08178ec7c25ed65ffc6 Mon Sep 17 00:00:00 2001 From: andanteyk Date: Sun, 15 Mar 2015 21:57:36 +0900 Subject: [PATCH] =?UTF-8?q?SS=E6=92=AE=E5=BD=B1=E6=99=82=E3=81=AB=E3=82=A8?= =?UTF-8?q?=E3=83=A9=E3=83=BC=E3=81=8C=E5=87=BA=E3=81=9D=E3=81=86=E3=81=AA?= =?UTF-8?q?=E3=81=A8=E3=81=93=E3=82=8D=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ElectronicObserver/Window/FormBrowser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElectronicObserver/Window/FormBrowser.cs b/ElectronicObserver/Window/FormBrowser.cs index aa2c2c62e..09864a850 100644 --- a/ElectronicObserver/Window/FormBrowser.cs +++ b/ElectronicObserver/Window/FormBrowser.cs @@ -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; };