From 9ab79daf74d6e839475f0c1911f5fbb540d487c1 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Fri, 3 Aug 2018 14:00:20 +0200 Subject: [PATCH] SELECTION_AREA: use abstract render settings object --- common/preview_items/selection_area.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/preview_items/selection_area.cpp b/common/preview_items/selection_area.cpp index 546ffd81ca..a06dadcfda 100644 --- a/common/preview_items/selection_area.cpp +++ b/common/preview_items/selection_area.cpp @@ -99,8 +99,7 @@ const BOX2I SELECTION_AREA::ViewBBox() const void SELECTION_AREA::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const { auto& gal = *aView->GetGAL(); - - auto rs = static_cast( aView->GetPainter()->GetSettings() ); + auto rs = aView->GetPainter()->GetSettings(); const auto& scheme = rs->IsBackgroundDark() ? selectionColorScheme[0] : selectionColorScheme[1];