summaryrefslogtreecommitdiff
path: root/filter/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-06-21 12:02:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-06-21 15:08:21 +0100
commit1b3692c6a4dbd0c16da97c0966d242d31dcf4c5f (patch)
tree1ab34a351c3ec622ca28043953d262a0934b1451 /filter/source
parent89a8a48ccda987ccfb779ce90d39d374f0781a53 (diff)
take a copy of the prop rather than pointer to ref
follow up to af2053c318564ef56235482f058d30ae26ecf77d Change-Id: I3493077076554b714600c4bb4e93ce44bc690190
Diffstat (limited to 'filter/source')
-rw-r--r--filter/source/msfilter/escherex.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 51ab62a1593e..369625148fb2 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -2641,7 +2641,8 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT
const OUString sHandles ( "Handles" );
const OUString sAdjustmentValues ( "AdjustmentValues" );
- const beans::PropertyValue* pAdjustmentValuesProp = NULL;
+ bool bAdjustmentValuesProp = false;
+ uno::Any aAdjustmentValuesProp;
bool bPathCoordinatesProp = false;
uno::Any aPathCoordinatesProp;
@@ -3705,13 +3706,14 @@ void EscherPropertyContainer::CreateCustomShapeProperties( const MSO_SPT eShapeT
{
// it is required, that the information which handle is polar has already be read,
// so we are able to change the polar value to a fixed float
- pAdjustmentValuesProp = &rProp;
+ aAdjustmentValuesProp = rProp.Value;
+ bAdjustmentValuesProp = true;
}
}
- if ( pAdjustmentValuesProp )
+ if ( bAdjustmentValuesProp )
{
uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue > aAdjustmentSeq;
- if ( pAdjustmentValuesProp->Value >>= aAdjustmentSeq )
+ if ( aAdjustmentValuesProp >>= aAdjustmentSeq )
{
if ( bPredefinedHandlesUsed )
LookForPolarHandles( eShapeType, nAdjustmentsWhichNeedsToBeConverted );