diff --git a/apps/shared/curve_view.h b/apps/shared/curve_view.h index eb1b24c5a..b9d5e4822 100644 --- a/apps/shared/curve_view.h +++ b/apps/shared/curve_view.h @@ -30,6 +30,7 @@ public: void setCursorView(View * cursorView); void setBannerView(View * bannerView); void setDisplayBannerView(bool display) { m_displayBanner = display; } + bool displayBannerView() const { return m_displayBanner; } void setOkView(View * okView); float resolution() const; protected: diff --git a/apps/statistics/histogram_view.cpp b/apps/statistics/histogram_view.cpp index aaca0be3e..2f729f761 100644 --- a/apps/statistics/histogram_view.cpp +++ b/apps/statistics/histogram_view.cpp @@ -25,7 +25,7 @@ void HistogramView::reload() { /* We deliberately do not mark as dirty the frame of the banner view to avoid *unpleasant blinking of the drawing of the banner view. */ KDRect dirtyZone(KDRect(pixelLowerBound, 0, pixelUpperBound-pixelLowerBound, - bounds().height()-m_bannerView->bounds().height())); + bounds().height() - (displayBannerView() ? m_bannerView->bounds().height() : 0))); markRectAsDirty(dirtyZone); }