From: dooglus Date: Wed, 18 Apr 2007 10:13:20 +0000 (+0000) Subject: Partially fix 1702760: stop compiler warning about dockmanager.cpp. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0cafd094043818c3bb7d829f6a8ca98a95311ab3;p=synfig.git Partially fix 1702760: stop compiler warning about dockmanager.cpp. git-svn-id: http://svn.voria.com/code@477 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/dockmanager.cpp b/synfig-studio/trunk/src/gtkmm/dockmanager.cpp index 64fadc0..cc13a96 100644 --- a/synfig-studio/trunk/src/gtkmm/dockmanager.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockmanager.cpp @@ -136,7 +136,7 @@ public: vector data; String::size_type n=0; String value_(value); - while(value_.size() && (signed)value_.size()>n && n>=0){ + while(value_.size() && value_.size()>n){ value_=String(value_.begin()+n,value_.end()); int size; if(!strscanf(value_,"%d",&size)) @@ -145,9 +145,8 @@ public: data.push_back(size); n=value_.find(" "); - if(n!=String::npos) - n++; - + if(n==String::npos) + break; } dock_dialog.set_dock_book_sizes(data); }