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];