sw/source/filter/html/parcss1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit de80818fb1b5084a367eea82d6e378b399c09ce2 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/8091 Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> Tested-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/sw/source/filter/html/parcss1.cxx b/sw/source/filter/html/parcss1.cxx index c498db9..575351e 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits