tdf#159258 sd: fix to show objects in slideshow if they have
fillstyle or linestyle. Also the shape will be appeared in print and pdf view. (Powerpoint doing the same.) TODO: the placeholder bitmap and the default text was not removed from the slideshow/print/pdf view. Change-Id: Ifadc9a692d77b60a7e3514afe8e6ea5cab0018c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164163 Tested-by: Jenkins Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
This commit is contained in:
@@ -2802,9 +2802,10 @@ bool SdPage::checkVisibility(
|
|||||||
const bool bIsInsidePageObj(pPageView && pPageView->GetPage() != pVisualizedPage);
|
const bool bIsInsidePageObj(pPageView && pPageView->GetPage() != pVisualizedPage);
|
||||||
|
|
||||||
// empty presentation objects only visible during edit mode
|
// empty presentation objects only visible during edit mode
|
||||||
if( (bIsPrinting || !bEdit || bIsInsidePageObj ) && pObj->IsEmptyPresObj() )
|
if( (bIsPrinting || !bEdit || bIsInsidePageObj ) && pObj->IsEmptyPresObj() && !(pObj->HasFillStyle() || pObj->HasLineStyle()) )
|
||||||
{
|
{
|
||||||
if( (pObj->GetObjInventor() != SdrInventor::Default) || ( (pObj->GetObjIdentifier() != SdrObjKind::Rectangle) && (pObj->GetObjIdentifier() != SdrObjKind::Page) ) )
|
if( (pObj->GetObjInventor() != SdrInventor::Default) || ( (pObj->GetObjIdentifier() != SdrObjKind::Rectangle) &&
|
||||||
|
(pObj->GetObjIdentifier() != SdrObjKind::Page) ) )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -346,6 +346,24 @@ bool ShapeImporter::isSkip(
|
|||||||
"IsEmptyPresentationObject") &&
|
"IsEmptyPresentationObject") &&
|
||||||
bEmpty )
|
bEmpty )
|
||||||
{
|
{
|
||||||
|
// check object have fill or linestyle, if have, it should be visible
|
||||||
|
drawing::FillStyle aFillStyle{ drawing::FillStyle_NONE };
|
||||||
|
if (getPropertyValue(aFillStyle,
|
||||||
|
xPropSet, "FillStyle") &&
|
||||||
|
aFillStyle != drawing::FillStyle_NONE)
|
||||||
|
{
|
||||||
|
bEmpty = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
drawing::LineStyle aLineStyle{ drawing::LineStyle_NONE };
|
||||||
|
if (bEmpty && getPropertyValue(aLineStyle,
|
||||||
|
xPropSet, "LineStyle") &&
|
||||||
|
aLineStyle != drawing::LineStyle_NONE)
|
||||||
|
{
|
||||||
|
bEmpty = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bEmpty)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user