fixes for >>= with rhs Any
this changes behaviour because >>= always returned true Change-Id: Ia7bbce1696e5c23f6e1e6f1a7e60b3c462cf0086 Reviewed-on: https://gerrit.libreoffice.org/30141 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
6f428c38c5
commit
9ad0e56be4
@ -262,12 +262,9 @@ sal_Bool SAL_CALL FlashExportFilter::filter( const css::uno::Sequence< css::bean
|
||||
|
||||
if(xSelection.is())
|
||||
{
|
||||
Any aSelection;
|
||||
|
||||
if(xSelection->getSelection() >>= aSelection)
|
||||
{
|
||||
Any aSelection = xSelection->getSelection();
|
||||
if (aSelection.hasValue())
|
||||
aSelection >>= mxSelectedShapes;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -235,9 +235,9 @@ sal_Bool SAL_CALL SVGFilter::filter( const Sequence< PropertyValue >& rDescripto
|
||||
|
||||
if (xSelection.is())
|
||||
{
|
||||
uno::Any aSelection;
|
||||
uno::Any aSelection = xSelection->getSelection();
|
||||
|
||||
if (xSelection->getSelection() >>= aSelection)
|
||||
if (aSelection.hasValue())
|
||||
{
|
||||
bGotSelection = ( aSelection >>= maShapeSelection );
|
||||
}
|
||||
|
@ -2583,7 +2583,8 @@ void XMLShapeExport::ImpExportConnectorShape(
|
||||
}
|
||||
}
|
||||
|
||||
if( xProps->getPropertyValue("PolyPolygonBezier") >>= aAny )
|
||||
aAny = xProps->getPropertyValue("PolyPolygonBezier");
|
||||
if( aAny.hasValue() )
|
||||
{
|
||||
// get PolygonBezier
|
||||
auto pSourcePolyPolygon = o3tl::tryAccess<drawing::PolyPolygonBezierCoords>(aAny);
|
||||
|
Loading…
x
Reference in New Issue
Block a user