summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/headless/svpframe.cxx9
-rw-r--r--vcl/source/outdev/outdev.cxx7
2 files changed, 2 insertions, 14 deletions
diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx
index 4a48abbe6915..3adf2a3bc1cb 100644
--- a/vcl/headless/svpframe.cxx
+++ b/vcl/headless/svpframe.cxx
@@ -309,13 +309,8 @@ void SvpSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_u
void SvpSalFrame::GetClientSize( long& rWidth, long& rHeight )
{
- if( m_bVisible )
- {
- rWidth = maGeometry.nWidth;
- rHeight = maGeometry.nHeight;
- }
- else
- rWidth = rHeight = 0;
+ rWidth = maGeometry.nWidth;
+ rHeight = maGeometry.nHeight;
}
void SvpSalFrame::GetWorkArea( Rectangle& rRect )
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index 6f3be20869db..b7429f6a1ec9 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -107,13 +107,6 @@ OutputDevice::OutputDevice() :
mnOutOffY = 0;
mnOutWidth = 0;
mnOutHeight = 0;
- if (comphelper::LibreOfficeKit::isActive())
- {
- // Device size isn't set later in this case, and with zero size, we
- // miss paint events.
- mnOutWidth = 1;
- mnOutHeight = 1;
- }
mnDPIX = 0;
mnDPIY = 0;
mnDPIScaleFactor = 1;