diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 14:57:50 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 14:57:50 -0400 |
commit | 52dd0b92f4cf82dee0f638bdf4ba304090863423 (patch) | |
tree | a09b975b773608343eb26bb582dd6b5ae5165d81 | |
parent | b84a5401359a442b2dff14599f80d47626290fa1 (diff) | |
download | lingo-ap-tracker-52dd0b92f4cf82dee0f638bdf4ba304090863423.tar.gz lingo-ap-tracker-52dd0b92f4cf82dee0f638bdf4ba304090863423.tar.bz2 lingo-ap-tracker-52dd0b92f4cf82dee0f638bdf4ba304090863423.zip |
Prevent crash from opening subway map too quickly
-rw-r--r-- | src/subway_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
58 | wxBitmap rendered_; | 58 | wxBitmap rendered_; |
59 | int render_x_ = 0; | 59 | int render_x_ = 0; |
60 | int render_y_ = 0; | 60 | int render_y_ = 0; |
61 | int render_width_ = 0; | 61 | int render_width_ = 1; |
62 | int render_height_ = 0; | 62 | int render_height_ = 1; |
63 | 63 | ||
64 | double zoom_ = 1.0; | 64 | double zoom_ = 1.0; |
65 | int zoom_x_ = 0; // in render space | 65 | int zoom_x_ = 0; // in render space |