summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-07-31 12:33:41 +0200
committerNoel Power <noel.power@novell.com>2012-08-01 10:32:27 +0100
commit2909cf76a701b4860b849fc1aa90fc2046bfbe00 (patch)
tree6c394b3eabe12692ecdb3f0a3baf838dd2da5717 /oox
parent88c0f4e9a28db4f2947c1c7469f54b76e88a3052 (diff)
fdo#45724 improve WW8 textbox export
If there is no default value, but there is a current one, export that instead. Change-Id: I01af5cfa641b061b0aeb959e579bca66340781e9
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ole/axcontrol.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx
index b8a8f590ab86..1d124ce4b459 100644
--- a/oox/source/ole/axcontrol.cxx
+++ b/oox/source/ole/axcontrol.cxx
@@ -1718,6 +1718,9 @@ void AxTextBoxModel::convertFromProperties( PropertySet& rPropSet, const Control
if ( rPropSet.getProperty( bRes, PROP_HideInactiveSelection ) )
setFlag( mnFlags, AX_FLAGS_HIDESELECTION, bRes );
rPropSet.getProperty( maValue, ( mbAwtModel ? PROP_Text : PROP_DefaultText ) );
+ if (maValue.isEmpty() && !mbAwtModel)
+ // No default value? Then try exporting the current one.
+ rPropSet.getProperty( maValue, PROP_Text);
sal_Int16 nTmp(0);
if ( rPropSet.getProperty( nTmp, PROP_MaxTextLen ) )
mnMaxLength = nTmp;