diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-02-17 20:49:24 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-02-17 21:08:05 +0100 |
commit | 2afb605601ec0b29e177dd38e4f16bfe06590882 (patch) | |
tree | 25c0faa60d6b4feeadea23863f301be8161f8d21 /sw | |
parent | 7a984575988b0de3e7f73a621d2079dabad39b59 (diff) |
Fix crash in css rgb color handling.
Crashing since 2000 (or earlier).
Change-Id: I9f91d56f380be2421370b0acbee351461e1f0973
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/parcss1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/parcss1.cxx b/sw/source/filter/html/parcss1.cxx index 3dfbaea226c5..8489355ee630 100644 --- a/sw/source/filter/html/parcss1.cxx +++ b/sw/source/filter/html/parcss1.cxx @@ -1279,7 +1279,7 @@ sal_Bool CSS1Expression::GetColor( Color &rColor ) const ')' == aValue[aValue.getLength()-1], "keine gueltiges RGB(...)" ); - OUString aColorStr( aValue.copy( 4, aValue.getLength()-1 ) ); + OUString aColorStr(aValue.copy(4, aValue.getLength() - 5)); sal_Int32 nPos = 0; sal_uInt16 nCol = 0; |