[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sw/source

Jan Holesovsky kendy at collabora.com
Tue Feb 18 07:57:57 CET 2014


 sw/source/filter/html/parcss1.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit de80818fb1b5084a367eea82d6e378b399c09ce2
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/8091
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at 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;


More information about the Libreoffice-commits mailing list