X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwx%2Fsubtitle_panel.cc;h=d99b545587393104aeb1f0731d1a8b0f3b3ebd42;hb=1d68fe1e3ad1a9aa85fa7fc6071a0b8c64973953;hp=3d6e5c8c37b0d6f1bc857bfeabae68d8558357b2;hpb=e386b94425586760374d8e1cb16be99af09cf07f;p=dcpomatic.git diff --git a/src/wx/subtitle_panel.cc b/src/wx/subtitle_panel.cc index 3d6e5c8c3..d99b54558 100644 --- a/src/wx/subtitle_panel.cc +++ b/src/wx/subtitle_panel.cc @@ -173,9 +173,9 @@ SubtitlePanel::film_content_changed (int property) } else if (property == SubtitleContentProperty::SUBTITLE_Y_OFFSET) { checked_set (_y_offset, scs ? (scs->subtitle_y_offset() * 100) : 0); } else if (property == SubtitleContentProperty::SUBTITLE_X_SCALE) { - checked_set (_x_scale, scs ? int (rint (scs->subtitle_x_scale() * 100)) : 100); + checked_set (_x_scale, scs ? lrint (scs->subtitle_x_scale() * 100) : 100); } else if (property == SubtitleContentProperty::SUBTITLE_Y_SCALE) { - checked_set (_y_scale, scs ? int (rint (scs->subtitle_y_scale() * 100)) : 100); + checked_set (_y_scale, scs ? lrint (scs->subtitle_y_scale() * 100) : 100); } else if (property == SubtitleContentProperty::SUBTITLE_LANGUAGE) { checked_set (_language, scs ? scs->subtitle_language() : ""); }