Don't push back any onion skin queue unless onionskin boolean is set to true.
authorgenete <genete@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 18 Mar 2009 20:58:38 +0000 (20:58 +0000)
committerCarlos Lopez <carlos@pcnuevo.(none)>
Fri, 12 Jun 2009 14:26:41 +0000 (16:26 +0200)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2354 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 9038bb1..0ebd729 100644 (file)
@@ -123,10 +123,11 @@ public:
 
                Time time(rend_desc().get_time_start());
 
+               if(!onionskin)
+                       return;
                onion_skin_queue.push_back(time);
                //onion_skin_queue.push_back(time-1);
                //onion_skin_queue.push_back(time+1);
-
                try
                {
                        onion_skin_queue.push_back(
@@ -419,12 +420,11 @@ public:
 
                Time time(rend_desc().get_time_start());
 
+               if(!onionskin)
+                       return;
                onion_skin_queue.push_back(time);
                //onion_skin_queue.push_back(time-1);
                //onion_skin_queue.push_back(time+1);
-               if(!onionskin)
-                       return;
-
                try
                {
                        onion_skin_queue.push_back(