Partially fix 1702760: stop compiler warning about dockmanager.cpp.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 18 Apr 2007 10:13:20 +0000 (10:13 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 18 Apr 2007 10:13:20 +0000 (10:13 +0000)
git-svn-id: http://svn.voria.com/code@477 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/dockmanager.cpp

index 64fadc0..cc13a96 100644 (file)
@@ -136,7 +136,7 @@ public:
                                vector<int> 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);
                                }