From 545e955b4b93cd7728de79eb40794d29963d0b4a Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 16 Oct 2007 05:07:46 +0000 Subject: associate an item with the line, for grdrag (bzr r3904) --- src/display/sp-ctrlline.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/display/sp-ctrlline.cpp') 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); } -- cgit v1.2.3