diff options
| author | Richard Hughes <cyreve@gmail.com> | 2008-01-26 13:19:14 +0000 |
|---|---|---|
| committer | cyreve <cyreve@users.sourceforge.net> | 2008-01-26 13:19:14 +0000 |
| commit | d719b0162d2219860dfa55bb0135f9078e624a1c (patch) | |
| tree | 4f8dfa238e20ba16155d77a5b3b77b29db5c9b66 /src | |
| parent | * I Forgot to fix another one like the previous (diff) | |
| download | inkscape-d719b0162d2219860dfa55bb0135f9078e624a1c.tar.gz inkscape-d719b0162d2219860dfa55bb0135f9078e624a1c.zip | |
bug 185761: crash when editing text with the text & font dialog due to reading off the end of an array (and then discarding the result)
(bzr r4597)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnrtype/TextWrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/TextWrapper.cpp b/src/libnrtype/TextWrapper.cpp index ce8797322..c818bcab3 100644 --- a/src/libnrtype/TextWrapper.cpp +++ b/src/libnrtype/TextWrapper.cpp @@ -691,7 +691,7 @@ void text_wrapper::MakeTextBoundaries(PangoLogAttr *pAttrs, int nAttr) last_s_st = i; } // paragraphs - if ( uni32_text[i] == '\n' || uni32_text[i] == '\r' || i == nAttr ) { // too simple to be true? + if ( i == nAttr || uni32_text[i] == '\n' || uni32_text[i] == '\r' ) { // too simple to be true? nbs.type = nbe.type = bnd_para; nbs.uni_pos = last_p_st; nbe.uni_pos = i + 1; |
