summaryrefslogtreecommitdiffstats
path: root/src/display/sp-ctrlline.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-10-16 05:07:46 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-10-16 05:07:46 +0000
commit545e955b4b93cd7728de79eb40794d29963d0b4a (patch)
treea3ae481ff51cbb763b24bd19c9e051b2fd50ba71 /src/display/sp-ctrlline.cpp
parentFixed a typo (Kernal -> Kernel) (diff)
downloadinkscape-545e955b4b93cd7728de79eb40794d29963d0b4a.tar.gz
inkscape-545e955b4b93cd7728de79eb40794d29963d0b4a.zip
associate an item with the line, for grdrag
(bzr r3904)
Diffstat (limited to 'src/display/sp-ctrlline.cpp')
-rw-r--r--src/display/sp-ctrlline.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display/sp-ctrlline.cpp b/src/display/sp-ctrlline.cpp
index 85f8fdc60..e94805831 100644
--- a/src/display/sp-ctrlline.cpp
+++ b/src/display/sp-ctrlline.cpp
@@ -78,6 +78,7 @@ sp_ctrlline_init (SPCtrlLine *ctrlline)
ctrlline->rgba = 0x0000ff7f;
ctrlline->s.x = ctrlline->s.y = ctrlline->e.x = ctrlline->e.y = 0.0;
ctrlline->shp=NULL;
+ ctrlline->item=NULL;
}
static void
@@ -93,6 +94,8 @@ sp_ctrlline_destroy (GtkObject *object)
ctrlline->shp = NULL;
}
+ ctrlline->item=NULL;
+
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}