File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2795,7 +2795,7 @@ def setup_toolbars(self):
2795
2795
self .caption_model_row = None
2796
2796
2797
2797
# Get project's initial zoom value
2798
- initial_scale = get_app ().project .get ("scale" ) or 15.0
2798
+ initial_scale = float ( get_app ().project .get ("scale" ) or 15.0 )
2799
2799
2800
2800
# Setup Zoom Slider widget
2801
2801
from windows .views .zoom_slider import ZoomSlider
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ def changed(self, action):
230
230
# Reset the scale when loading new JSON
231
231
if action .type == "load" :
232
232
# Set the scale again (to project setting)
233
- initial_scale = get_app ().project .get ("scale" ) or 15.0
233
+ initial_scale = float ( get_app ().project .get ("scale" ) or 15.0 )
234
234
self .window .sliderZoomWidget .setZoomFactor (initial_scale )
235
235
236
236
@pyqtSlot (str , bool , bool , bool )
@@ -2829,7 +2829,7 @@ def update_zoom(self, newScale):
2829
2829
self .redraw_audio_timer .start ()
2830
2830
2831
2831
# Only update scale if different
2832
- current_scale = float (get_app ().project .get ("scale" ))
2832
+ current_scale = float (get_app ().project .get ("scale" ) or 15.0 )
2833
2833
2834
2834
# Save current zoom
2835
2835
if newScale != current_scale :
You can’t perform that action at this time.
0 commit comments