diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2015-12-11 09:16:30 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2015-12-11 09:16:30 +0000 |
| commit | 678ace57cb2e98572d3e5c30138b3100aceef1ed (patch) | |
| tree | ece8baa850d6b7233fc709172be6bc3c8759990f /src/sp-guide.cpp | |
| parent | Clean up some code, only init the SPKnot in one place. (diff) | |
| download | inkscape-678ace57cb2e98572d3e5c30138b3100aceef1ed.tar.gz inkscape-678ace57cb2e98572d3e5c30138b3100aceef1ed.zip | |
Fix crash on hidden guides
(bzr r14527)
Diffstat (limited to 'src/sp-guide.cpp')
| -rw-r--r-- | src/sp-guide.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp-guide.cpp b/src/sp-guide.cpp index b8990a461..a57947e01 100644 --- a/src/sp-guide.cpp +++ b/src/sp-guide.cpp @@ -290,6 +290,9 @@ void SPGuide::showSPGuide() sp_canvas_item_show(SP_CANVAS_ITEM(*it)); if((*it)->origin) { (*it)->origin->show(); + } else { + //reposition to same place to show knots + sp_guideline_set_position(*it, point_on_line); } } } @@ -313,7 +316,9 @@ void SPGuide::hideSPGuide() { for(std::vector<SPGuideLine *>::const_iterator it = this->views.begin(); it != this->views.end(); ++it) { sp_canvas_item_hide(SP_CANVAS_ITEM(*it)); - (*it)->origin->hide(); + if ((*it)->origin) { + (*it)->origin->hide(); + } } } |
