Skip to content

Commit

Permalink
fix format.width property private -> .width() method
Browse files Browse the repository at this point in the history
-> `format.width()` in bitmapimage.rs
  • Loading branch information
Doublonmousse committed Oct 8, 2023
1 parent c3c4419 commit 9670ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rnote-engine/src/strokes/bitmapimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl BitmapImage {
//log::debug!("{:#?}",format);

// get sizes
let scale = (format.width) * (70.0 / 100.0) / size[0];
let scale = format.width() * (70.0 / 100.0) / size[0];
// The size of the image is hard coded here. We should probably
// get the settings for this scale from the settings panel

Expand All @@ -126,7 +126,7 @@ impl BitmapImage {
size = size * scale;
}
// Very similar to what is done to import pdfs
// But needed to be put here because of the stack call used for images
// But needed to be put here because of the stack call used `r images
// We could put all scaling of images/pdf in here, pulling what is in the pdf
// import function and refactor this function/remove the mut for size among
// other things
Expand Down

0 comments on commit 9670ada

Please sign in to comment.