tdf#164129 sd: fix resizing of the notes text content

The notes text content was not resized when we changed the paper size
in the print dialog.

Change-Id: I2f610579e2ac84c298c4105a5c1235fbe62ad627
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178146
Tested-by: Jenkins
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
This commit is contained in:
Tibor Nagy 2024-12-09 13:47:06 +01:00 committed by Nagy Tibor
parent 6fd252d499
commit f958aea556

View file

@ -2013,10 +2013,10 @@ void SdPage::ScaleObjects(const Size& rNewPageSize, const ::tools::Rectangle& rN
}
}
}
else if ( eObjKind != SdrObjKind::TitleText &&
eObjKind != SdrObjKind::OutlineText &&
DynCastSdrTextObj( pObj.get() ) != nullptr &&
pObj->GetOutlinerParaObject() )
else if (eObjKind != SdrObjKind::TitleText
&& eObjKind != SdrObjKind::OutlineText && mePageKind != PageKind::Notes
&& DynCastSdrTextObj(pObj.get()) != nullptr
&& pObj->GetOutlinerParaObject())
{
/******************************************************
* normal text object: adjust text height