diff options
-rw-r--r-- | vcl/inc/unx/salgdi.h | 1 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/X11CairoSalGraphicsImpl.cxx | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index 35b4d98d076d..1684530b30ff 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.h @@ -81,6 +81,7 @@ public: class X11SalGraphics final : public SalGraphicsAutoDelegateToImpl { + friend class X11CairoSalGraphicsImpl; friend class X11CairoTextRender; public: diff --git a/vcl/unx/generic/gdi/X11CairoSalGraphicsImpl.cxx b/vcl/unx/generic/gdi/X11CairoSalGraphicsImpl.cxx index 53bf309375bc..d5a88631c192 100644 --- a/vcl/unx/generic/gdi/X11CairoSalGraphicsImpl.cxx +++ b/vcl/unx/generic/gdi/X11CairoSalGraphicsImpl.cxx @@ -21,6 +21,7 @@ #include <basegfx/polygon/b2dpolypolygontools.hxx> #include <basegfx/curve/b2dcubicbezier.hxx> +#include <salframe.hxx> X11CairoSalGraphicsImpl::X11CairoSalGraphicsImpl(X11SalGraphics& rParent, CairoCommon& rCairoCommon) : mrParent(rParent) @@ -30,6 +31,8 @@ X11CairoSalGraphicsImpl::X11CairoSalGraphicsImpl(X11SalGraphics& rParent, CairoC tools::Long X11CairoSalGraphicsImpl::GetGraphicsWidth() const { + if (mrParent.m_pFrame) + return mrParent.m_pFrame->maGeometry.width(); return mrCairoCommon.m_pSurface ? mrCairoCommon.m_aFrameSize.getX() : 0; } |