Kaydet (Commit) 5f15c786 authored tarafından Katarina Behrens's avatar Katarina Behrens

tdf#89420: Honour doc boundaries (in)visible also in Impress/Draw

I haven't figured out how NOT to draw the frame at all, so let's at
least draw it using the same colour as document background

Change-Id: I3e31bec65ab34772bd2f8137be7e5e5258758184
Reviewed-on: https://gerrit.libreoffice.org/23652Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst f80de310
......@@ -360,7 +360,9 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfInnerPageBorder::cr
}
else
{
aBorderColor = aColorConfig.GetColorValue(svtools::DOCBOUNDARIES).nColor;
svtools::ColorConfigValue aBorderConfig = aColorConfig.GetColorValue(svtools::DOCBOUNDARIES);
aBorderColor = aBorderConfig.bIsVisible ? aBorderConfig.nColor :
aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor;
}
// create page outer border primitive
......
......@@ -230,7 +230,8 @@ drawinglayer::primitive2d::Primitive2DContainer ViewObjectContactOfPageObj::crea
// Recursion is possible. Create a replacement primitive
xPageContent.resize(2);
const Color aDocColor(aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor);
const Color aBorderColor(aColorConfig.GetColorValue(svtools::DOCBOUNDARIES).nColor);
svtools::ColorConfigValue aBorderConfig = aColorConfig.GetColorValue(svtools::DOCBOUNDARIES);
const Color aBorderColor = aBorderConfig.bIsVisible ? aBorderConfig.nColor : aDocColor;
const basegfx::B2DRange aPageBound(0.0, 0.0, fPageWidth, fPageHeight);
const basegfx::B2DPolygon aOutline(basegfx::tools::createPolygonFromRect(aPageBound));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment