mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-17 08:05:21 +00:00
fix(ui): handle Fit::None with set_zoom in preferences fit_changed
This commit is contained in:
1 parent
4f16190e52
commit
ac46a4a26c
1 file changed
+4
-1
@@ -773,7 +773,10 @@ fn card_documents_and_view(ui: &mut egui::Ui, app: &mut PdfCraftApp, t: &Tokens,
|
||||
app.views[i].show_page_gaps = show_page_gaps;
|
||||
}
|
||||
if fit_changed {
|
||||
app.views[i].set_fit(app.view_defaults.fit);
|
||||
match app.view_defaults.fit {
|
||||
Fit::None => app.views[i].set_zoom(app.view_defaults.zoom),
|
||||
fit => app.views[i].set_fit(fit),
|
||||
}
|
||||
}
|
||||
if zoom_changed {
|
||||
app.views[i].set_zoom(app.view_defaults.zoom);
|
||||
|
||||
Reference in new issue
Block a user