diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2009-03-23 15:36:37 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2009-03-23 15:36:37 +0000 |
commit | 359a525d48d9dacb4b3fdd79b35b8632ca0b2c39 (patch) | |
tree | 8159f34399fe9c1bcc98aac0400325442b89ecec /svtools | |
parent | dd4cb8ff68eee6657c12cd0f4d2f832290ba21ec (diff) |
CWS-TOOLING: integrate CWS dba31j_DEV300
2009-03-11 12:24:24 +0100 iha r269311 : #i100102# report donut charts crash on load
2009-03-11 10:44:35 +0100 oj r269302 : #i100102# export meta.xml
2009-03-11 07:35:03 +0100 oj r269296 : #i99686# not used anymore
2009-03-11 07:34:27 +0100 oj r269295 : #i99686# not used anymore
2009-03-11 07:33:57 +0100 oj r269294 : #i99686# change storage usage
2009-03-10 15:21:41 +0100 mav r269275 : #i99686# test additional scenario
2009-03-10 08:37:10 +0100 mav r269239 : #i100040# calculate the name length correctly
2009-03-10 08:25:16 +0100 mav r269236 : #i99686# workaround to prevent crash while disposing the hierarchical stream
2009-03-10 07:14:05 +0100 oj r269235 : #i99686# fix usage of storage api
2009-03-10 07:13:17 +0100 oj r269234 : #i99686# fix usage of storage api
2009-03-09 13:33:26 +0100 fs r269085 : #i100012#
2009-03-09 13:11:08 +0100 fs r269081 : #i100036# don't store sub documents which have not been touched
2009-03-09 11:21:17 +0100 fs r269070 : #i100040# don't silence errors in impl_storeToStorage_throw
2009-03-09 10:28:48 +0100 oj r269065 : #i100036# throw exception when no activeConnection exists
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/editsyntaxhighlighter.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/edit/editsyntaxhighlighter.cxx b/svtools/source/edit/editsyntaxhighlighter.cxx index 334b19ccd98d..74d72e32155c 100644 --- a/svtools/source/edit/editsyntaxhighlighter.cxx +++ b/svtools/source/edit/editsyntaxhighlighter.cxx @@ -108,8 +108,11 @@ void MultiLineEditSyntaxHighlight::DoBracketHilight(USHORT aKey) { for (long aPara =nStartPara; aPara>=0;--aPara) { + if ( aStartPos == 0 ) + continue; + String aLine( GetTextEngine()->GetText( aPara ) ); - for (USHORT i = ((unsigned long)aPara==nStartPara) ? aStartPos-1 : (USHORT)(GetTextEngine()->GetTextLen()-1); i>0; --i) + for (USHORT i = ((unsigned long)aPara==nStartPara) ? aStartPos-1 : (USHORT)(aLine.Len()-1); i>0; --i) { if (aLine.GetChar(i)==aChar) { |