diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-13 14:54:37 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-13 14:54:37 +0000 |
| commit | 7751039569c013a2f3d8f8913a4399aeff3ede02 (patch) | |
| tree | 2074f179274558ef8038d61ebdf6b07e0cd14a22 /src/draw-context.cpp | |
| parent | Get rid of some superfluous includes (diff) | |
| download | inkscape-7751039569c013a2f3d8f8913a4399aeff3ede02.tar.gz inkscape-7751039569c013a2f3d8f8913a4399aeff3ede02.zip | |
Initialize the pointer variables in draw-context with NULL, just to be on the safe side
(bzr r6614)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index 7bf01829d..97fcb7be6 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -116,6 +116,24 @@ sp_draw_context_init(SPDrawContext *dc) dc->green_color = 0x00ff007f; dc->red_curve_is_valid = false; + dc->red_bpath = NULL; + dc->red_curve = NULL; + + dc->blue_bpath = NULL; + dc->blue_curve = NULL; + + dc->green_bpaths = NULL; + dc->green_curve = NULL; + dc->green_anchor = NULL; + dc->green_closed = false; + + dc->white_item = NULL; + dc->white_curves = NULL; + dc->white_anchors = NULL; + + dc->sa = NULL; + dc->ea = NULL; + dc->waiting_LPE_type = Inkscape::LivePathEffect::INVALID_LPE; new (&dc->sel_changed_connection) sigc::connection(); |
