summaryrefslogtreecommitdiff
path: root/vcl/source/control/imgctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/imgctrl.cxx')
-rw-r--r--vcl/source/control/imgctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/imgctrl.cxx b/vcl/source/control/imgctrl.cxx
index 6a8082fb5de2..efd64c825d68 100644
--- a/vcl/source/control/imgctrl.cxx
+++ b/vcl/source/control/imgctrl.cxx
@@ -139,7 +139,7 @@ void ImageControl::Paint( const Rectangle& /*rRect*/ )
{
vcl::Window *pWin = GetWindow( WINDOW_BORDER );
- bool bFlat = (GetBorderStyle() == 2);
+ bool bFlat = (GetBorderStyle() == WindowBorderStyle::MONO);
Rectangle aRect( Point(0,0), pWin->GetOutputSizePixel() );
Color oldLineCol = pWin->GetLineColor();
Color oldFillCol = pWin->GetFillColor();