forked from 1b-agent/opencadstudio-upstream
chore: post-merge cleanup for #287/#289
- Reword the two new explanatory comments to describe the behaviour on its own instead of citing another product. - window_to_sheet: drop the unused window_min parameter (the caller already derives its coordinate offset from the returned min-corner position) and fix the doc comment to match what the function returns. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
dd4f678c41
commit
b50921923f
4 files changed
+16
-20
No files matched your search
@@ -1072,8 +1072,7 @@ pub(super) fn on_open_file(&mut self) -> Task<Message> {
|
||||
PlotScale::Fit
|
||||
}
|
||||
};
|
||||
let (scale, ox, oy) =
|
||||
window_to_sheet((win_w, win_h), (x0, y0), (sheet_w, sheet_h), scale_sel);
|
||||
let (scale, ox, oy) = window_to_sheet((win_w, win_h), (sheet_w, sheet_h), scale_sel);
|
||||
|
||||
let scene = &self.tabs[i].scene;
|
||||
// Cull to the window so a small-area plot doesn't write the whole
|
||||
|
||||
Reference in new issue
Block a user