summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-07-21 18:41:03 +0200
committerMichael Stahl <mstahl@redhat.com>2014-07-21 18:46:46 +0200
commit2949d3ccc547d77c7e064a0d34c5d92c565bdcbb (patch)
tree904e8fd3464f631f7d68b7250a8ddf7d82d5c74a
parent31d4ab06b5e5250140293e88e91c56a679cc71fd (diff)
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
-rw-r--r--vcl/source/gdi/metaact.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx
index 25f14fec2618..728860b7bd35 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;