summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2016-03-30 14:17:18 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2016-03-30 22:48:11 +0000
commit5f15c7866ef03d7cbbd967e341651fa0c7b64bcd (patch)
tree2d71656147291bb83aef351ef3b1b2dd2c247c98 /svx
parentf80de31099be1ba7c6f753187f6703a915151c27 (diff)
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/23652 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewcontactofsdrpage.cxx4
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofpageobj.cxx3
2 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/sdr/contact/viewcontactofsdrpage.cxx b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
index dd1224299fd7..607eae0d5a35 100644
--- a/svx/source/sdr/contact/viewcontactofsdrpage.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
@@ -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
diff --git a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
index 6f30fb7755b5..c6c17577576d 100644
--- a/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofpageobj.cxx
@@ -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));