From 8cfa9e217fdafe657ec9621f4c9c9c9199094e53 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Mon, 2 May 2016 00:31:06 -0400 Subject: [PATCH 1/3] Improve status bar messages and tooltips for pushbuttons --- src/widgets/Ruler.cpp | 105 ++++++++++++++++++++++++------------------ src/widgets/Ruler.h | 51 ++++++++++++++------ 2 files changed, 98 insertions(+), 58 deletions(-) diff --git a/src/widgets/Ruler.cpp b/src/widgets/Ruler.cpp index 79a1b6d4d..25dab247d 100644 --- a/src/widgets/Ruler.cpp +++ b/src/widgets/Ruler.cpp @@ -1910,17 +1910,12 @@ wxFont &AdornedRulerPanel::GetButtonFont() const done = true; mButtonFont.SetPointSize(mButtonFontSize); wxCoord width, height; - for (unsigned ii = 0; - done && ii < static_cast(Button::NumButtons); ++ii) { - auto button = static_cast