sw/source/filter/html/parcss1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 84de230c6a73afb1c32ee04aa1f70fbcfbf5677e Author: Jan Holesovsky <ke...@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 <dtar...@redhat.com> Reviewed-by: David Tardon <dtar...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits