diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-07-30 22:18:14 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-07-30 22:18:14 +0000 |
| commit | 9bfc966df651d986c4ff198ef3c6cfc70d9635ad (patch) | |
| tree | cc599072bdf90c73e5a8e5954527ef488c4a320e /src | |
| parent | Get to compile in javafx (diff) | |
| download | inkscape-9bfc966df651d986c4ff198ef3c6cfc70d9635ad.tar.gz inkscape-9bfc966df651d986c4ff198ef3c6cfc70d9635ad.zip | |
fix crash when deleting whitespace in start of flowtext
(bzr r6483)
Diffstat (limited to 'src')
| -rw-r--r-- | src/text-editing.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/text-editing.cpp b/src/text-editing.cpp index 3c4b4da8e..d28939774 100644 --- a/src/text-editing.cpp +++ b/src/text-editing.cpp @@ -1669,10 +1669,14 @@ static bool tidy_operator_styled_whitespace(SPObject **item) for ( ; ; ) { // go up one item in the xml test_item = SP_OBJECT_PARENT(test_item); if (is_line_break_object(test_item)) break; - SPObject *next = SP_OBJECT_NEXT(test_item); - if (next) { - test_item = next; - break; + if (test_item) { + SPObject *next = SP_OBJECT_NEXT(test_item); + if (next) { + test_item = next; + break; + } + } else { + return false; } } if (is_line_break_object(test_item)) { // no next string, see if there's a prev string |
