summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-02-17 20:49:24 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-02-18 06:57:33 +0000
commitde80818fb1b5084a367eea82d6e378b399c09ce2 (patch)
tree65f4c5c35cdeddcf2afb6f677dc9a95ba15b7ad9 /sw
parentd6e600952403dacbcbf684a30b48ff5c4765ec55 (diff)
Fix crash in css rgb color handling.
Crashing since 2000 (or earlier). Change-Id: I9f91d56f380be2421370b0acbee351461e1f0973 Reviewed-on: https://gerrit.libreoffice.org/8091 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/html/parcss1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/parcss1.cxx b/sw/source/filter/html/parcss1.cxx
index c498db93e372..575351eb58ed 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;