summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/document-properties.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-07-28 21:48:41 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-07-28 21:48:41 +0000
commit553293740817862cb756c770f6bee01dd00089bf (patch)
tree5a961edee9f190216291fd556501fb215ac1d517 /src/ui/dialog/document-properties.cpp
parentfix build. gcc 4.6.1 does not like double parens here :/ (diff)
downloadinkscape-553293740817862cb756c770f6bee01dd00089bf.tar.gz
inkscape-553293740817862cb756c770f6bee01dd00089bf.zip
fix crash bug (reported by su_v on IRC) related to removing color profiles
(bzr r13481)
Diffstat (limited to 'src/ui/dialog/document-properties.cpp')
-rw-r--r--src/ui/dialog/document-properties.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp
index 2674efc1e..9141b2268 100644
--- a/src/ui/dialog/document-properties.cpp
+++ b/src/ui/dialog/document-properties.cpp
@@ -596,6 +596,7 @@ void DocumentProperties::removeSelectedProfile(){
//XML Tree being used directly here while it shouldn't be.
sp_repr_unparent(obj->getRepr());
DocumentUndo::done(SP_ACTIVE_DOCUMENT, SP_VERB_EDIT_REMOVE_COLOR_PROFILE, _("Remove linked color profile"));
+ break; // removing the color profile likely invalidates part of the traversed list, stop traversing here.
}
current = g_slist_next(current);
}