Revert "Fixed Bug [35079]"
The commit completely breaks slide transitions (and probably other things as well). This reverts commit 234738874f29ed23cd2aafb470511b5acf411e3c.
This commit is contained in:
parent
ad031fd4bd
commit
19d13fd16e
@ -27,7 +27,6 @@
|
||||
************************************************************************/
|
||||
|
||||
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
|
||||
#include <drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx>
|
||||
#include <drawinglayer/geometry/viewinformation2d.hxx>
|
||||
#include <basegfx/tools/canvastools.hxx>
|
||||
|
||||
@ -122,27 +121,25 @@ namespace drawinglayer
|
||||
basegfx::B2DRange getB2DRangeFromPrimitive2DReference(const Primitive2DReference& rCandidate, const geometry::ViewInformation2D& aViewInformation)
|
||||
{
|
||||
basegfx::B2DRange aRetval;
|
||||
|
||||
if(rCandidate.is())
|
||||
{
|
||||
//Ignores hidden primitives that may be malpositioned
|
||||
if ((dynamic_cast< BasePrimitive2D*>(rCandidate.get()))->getPrimitive2DID() != PRIMITIVE2D_ID_HIDDENGEOMETRYPRIMITIVE2D)
|
||||
{
|
||||
// try to get C++ implementation base
|
||||
const BasePrimitive2D* pCandidate(dynamic_cast< BasePrimitive2D* >(rCandidate.get()));
|
||||
// try to get C++ implementation base
|
||||
const BasePrimitive2D* pCandidate(dynamic_cast< BasePrimitive2D* >(rCandidate.get()));
|
||||
|
||||
if(pCandidate)
|
||||
{
|
||||
// use it if possible
|
||||
aRetval.expand(pCandidate->getB2DRange(aViewInformation));
|
||||
}
|
||||
else
|
||||
{
|
||||
// use UNO API call instead
|
||||
const uno::Sequence< beans::PropertyValue >& rViewParameters(aViewInformation.getViewInformationSequence());
|
||||
aRetval.expand(basegfx::unotools::b2DRectangleFromRealRectangle2D(rCandidate->getRange(rViewParameters)));
|
||||
}
|
||||
if(pCandidate)
|
||||
{
|
||||
// use it if possible
|
||||
aRetval.expand(pCandidate->getB2DRange(aViewInformation));
|
||||
}
|
||||
else
|
||||
{
|
||||
// use UNO API call instead
|
||||
const uno::Sequence< beans::PropertyValue >& rViewParameters(aViewInformation.getViewInformationSequence());
|
||||
aRetval.expand(basegfx::unotools::b2DRectangleFromRealRectangle2D(rCandidate->getRange(rViewParameters)));
|
||||
}
|
||||
}
|
||||
|
||||
return aRetval;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user