Fixed layer drag bug
authordarco <darco@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 26 Nov 2005 19:46:00 +0000 (19:46 +0000)
committerdarco <darco@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 26 Nov 2005 19:46:00 +0000 (19:46 +0000)
git-svn-id: http://svn.voria.com/code@63 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/ChangeLog
synfig-studio/trunk/macosxbuild.sh
synfig-studio/trunk/src/gtkmm/layertreestore.cpp
synfig-studio/trunk/win32build.sh

index 4ffb2ae..ac7a1e1 100644 (file)
@@ -1,3 +1,6 @@
+2005-11-26     Robert Quattlebaum      <darco@deepdarc.com>
+       * src/gtkmm/layertreestore.cpp: Fixed bug which caused crash on DND layer move 
+       
 2005-11-03     Robert Quattlebaum      <darco@deepdarc.com>
        * src/gtkmm/render.cpp: Fixed default render file to use the directory seperator for the given OS, rather than just use forward slashes all the time.
 
index 73400d7..ea21416 100755 (executable)
@@ -5,10 +5,11 @@ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/li
 export MACOSX_DEPLOYMENT_TARGET=10.4
 OPTIONS=""
 #OPTIONS="$OPTIONS --enable-timelimit=120"
-OPTIONS="$OPTIONS --enable-optimization=2"
+#OPTIONS="$OPTIONS --enable-optimization=2"
 #OPTIONS="$OPTIONS --enable-optimization=3 --enable-g5opt"
-#OPTIONS="$OPTIONS --disable-optimization"
-OPTIONS="$OPTIONS --disable-debug"
+OPTIONS="$OPTIONS --disable-optimization"
+#OPTIONS="$OPTIONS --disable-debug"
+OPTIONS="$OPTIONS --enable-debug"
 #export LDFLAGS='-undefined dynamic-lookup'
 LDFLAGS="-prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load -undefined dynamic_lookup"
 BUILDDIR=macosxbuild
index 5f75084..65be4ad 100644 (file)
@@ -489,15 +489,15 @@ LayerTreeStore::drag_data_received_vfunc (const TreeModel::Path& dest, const Gtk
                TreeModel::Path dest_parent(dest);
                if(!dest_parent.up() || !get_iter(dest_parent))
                {
-                       TreeModel::Path dest(dest);
-                       if(!get_iter(dest))
-                               dest.prev();
+                       TreeModel::Path dest_(dest);
+                       if(!get_iter(dest_))
+                               dest_.prev();
 
-                       if(!get_iter(dest))
+                       if(!get_iter(dest_))
                                return false;
 
                        {
-                               row=(*get_iter(dest));
+                               row=(*get_iter(dest_));
                                dest_canvas=(Canvas::Handle)(row[model.canvas]);
                        }
                }
index af16642..6d657dd 100755 (executable)
@@ -2,7 +2,8 @@
 
 OPTIONS=""
 OPTIONS="$OPTIONS --disable-optimization"
-OPTIONS="$OPTIONS --disable-debug"
+#OPTIONS="$OPTIONS --disable-debug"
+OPTIONS="$OPTIONS --enable-debug"
 #OPTIONS="$OPTIONS --enable-license-key"