diff options
| author | Martin Owens <doctormo@gmail.com> | 2015-12-11 02:47:16 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2015-12-11 02:47:16 +0000 |
| commit | 0732d8cfbf843dac04be27f45b8102d6df216410 (patch) | |
| tree | 44404d28d2ee2d2240da17dfb887d424565364ff /src/sp-guide.cpp | |
| parent | Fix bug launching a document by commandline with guides (diff) | |
| download | inkscape-0732d8cfbf843dac04be27f45b8102d6df216410.tar.gz inkscape-0732d8cfbf843dac04be27f45b8102d6df216410.zip | |
Clean up some code, only init the SPKnot in one place.
(bzr r14526)
Diffstat (limited to 'src/sp-guide.cpp')
| -rw-r--r-- | src/sp-guide.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp index 065acf586..b8990a461 100644 --- a/src/sp-guide.cpp +++ b/src/sp-guide.cpp @@ -288,7 +288,9 @@ void SPGuide::showSPGuide() { for(std::vector<SPGuideLine *>::const_iterator it = this->views.begin(); it != this->views.end(); ++it) { sp_canvas_item_show(SP_CANVAS_ITEM(*it)); - (*it)->origin->show(); + if((*it)->origin) { + (*it)->origin->show(); + } } } |
