From 52dd0b92f4cf82dee0f638bdf4ba304090863423 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 6 Jun 2024 14:57:50 -0400 Subject: Prevent crash from opening subway map too quickly --- src/subway_map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/subway_map.h b/src/subway_map.h index 1108cd4..feee8ff 100644 --- a/src/subway_map.h +++ b/src/subway_map.h @@ -58,8 +58,8 @@ class SubwayMap : public wxPanel { wxBitmap rendered_; int render_x_ = 0; int render_y_ = 0; - int render_width_ = 0; - int render_height_ = 0; + int render_width_ = 1; + int render_height_ = 1; double zoom_ = 1.0; int zoom_x_ = 0; // in render space -- cgit 1.4.1