[Libreoffice-commits] core.git: oox/source

Joren De Cuyper jorendc at libreoffice.org
Sat May 16 13:09:24 PDT 2015


 oox/source/drawingml/customshapepresetdata.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e1f576d9c83f239e1c05ebcd04fa97038942e4d5
Author: Joren De Cuyper <jorendc at libreoffice.org>
Date:   Sat May 16 13:41:57 2015 +0200

    Fix copy-paste error
    
    Due the variables above this error, I think this needs to be the .Height, not .Width
    
    Change-Id: If796cd1950f59d0e1a6005c1c1185066c688ef55
    Reviewed-on: https://gerrit.libreoffice.org/15748
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/oox/source/drawingml/customshapepresetdata.cxx b/oox/source/drawingml/customshapepresetdata.cxx
index 94d29f7..92252f3 100644
--- a/oox/source/drawingml/customshapepresetdata.cxx
+++ b/oox/source/drawingml/customshapepresetdata.cxx
@@ -146,7 +146,7 @@ awt::Rectangle lcl_parseRectangle(const OString& rValue)
     aToken = aToken.copy(nIndex);
     assert(aToken.startsWith(aExpectedHeightPrefix));
     nIndex = strlen(aExpectedHeightPrefix);
-    aRectangle.Width = static_cast<sal_Int32>(aToken.copy(nIndex).toInt32());
+    aRectangle.Height = static_cast<sal_Int32>(aToken.copy(nIndex).toInt32());
 
     return aRectangle;
 }


More information about the Libreoffice-commits mailing list