[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sw/source
Jan Holesovsky
kendy at collabora.com
Tue Feb 18 09:30:48 CET 2014
sw/source/filter/html/parcss1.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 84de230c6a73afb1c32ee04aa1f70fbcfbf5677e
Author: Jan Holesovsky <kendy at collabora.com>
Date: Mon Feb 17 20:49:24 2014 +0100
Fix crash in css rgb color handling.
Crashing since 2000 (or earlier).
Change-Id: I9f91d56f380be2421370b0acbee351461e1f0973
Reviewed-on: https://gerrit.libreoffice.org/8092
Tested-by: David Tardon <dtardon at redhat.com>
Reviewed-by: David Tardon <dtardon at redhat.com>
diff --git a/sw/source/filter/html/parcss1.cxx b/sw/source/filter/html/parcss1.cxx
index 8455ab1..24c32b9 100644
--- a/sw/source/filter/html/parcss1.cxx
+++ b/sw/source/filter/html/parcss1.cxx
@@ -1281,7 +1281,7 @@ sal_Bool CSS1Expression::GetColor( Color &rColor ) const
')' == aValue.GetChar( aValue.Len()-1),
"keine gueltiges RGB(...)" );
- String aColorStr( aValue.Copy( 4, aValue.Len()-1 ) );
+ String aColorStr( aValue.Copy( 4, aValue.Len()-5 ) );
xub_StrLen nPos = 0;
sal_uInt16 nCol = 0;
More information about the Libreoffice-commits
mailing list