diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-07-31 12:33:41 +0200 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-08-01 10:32:27 +0100 |
commit | 2909cf76a701b4860b849fc1aa90fc2046bfbe00 (patch) | |
tree | 6c394b3eabe12692ecdb3f0a3baf838dd2da5717 | |
parent | 88c0f4e9a28db4f2947c1c7469f54b76e88a3052 (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
-rw-r--r-- | oox/source/ole/axcontrol.cxx | 3 |
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; |