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

Michael Stahl mstahl at redhat.com
Mon Jul 21 09:51:29 PDT 2014


 vcl/source/gdi/metaact.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2949d3ccc547d77c7e064a0d34c5d92c565bdcbb
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Jul 21 18:41:03 2014 +0200

    vcl: fix MetaTextArrayAction copying only half of mpDXArray
    
    This causes an infinite loop in forms_unoapi test forms.OCheckBoxModel
    
    (regression from cd3d26b7edbce67805259a71e4118223e02ebdd4)
    
    Change-Id: I46715e1f1381fa92419558c34c6d47c3767de3e1

diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 25f14fe..728860b 100644
--- a/vcl/source/gdi/metaact.cxx
+++ b/vcl/source/gdi/metaact.cxx
@@ -1199,7 +1199,7 @@ MetaTextArrayAction::MetaTextArrayAction( const Point& rStartPt,
     if( nAryLen )
     {
         mpDXAry = new long[ nAryLen ];
-        memcpy( mpDXAry, pDXAry, nAryLen * sizeof( sal_Int32 ) );
+        memcpy( mpDXAry, pDXAry, nAryLen * sizeof(long) );
     }
     else
         mpDXAry = NULL;


More information about the Libreoffice-commits mailing list