diff options
Diffstat (limited to 'src/smallmap_gui.cpp')
-rw-r--r-- | src/smallmap_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 85a123626..99097c571 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1644,6 +1644,7 @@ public: bar->SetupSmallestSize(w, init_array); this->smallmap_window = dynamic_cast<SmallMapWindow *>(w); + assert(this->smallmap_window != NULL); this->smallest_x = max(display->smallest_x, bar->smallest_x + smallmap_window->GetMinLegendWidth()); this->smallest_y = display->smallest_y + max(bar->smallest_y, smallmap_window->GetLegendHeight(smallmap_window->min_number_of_columns)); this->fill_x = max(display->fill_x, bar->fill_x); |