Skip to content

Commit

Permalink
Document inserted at viewport when adjust_document is true flxzt#1088
Browse files Browse the repository at this point in the history
  • Loading branch information
strang3nt committed Sep 29, 2024
1 parent 7a5338a commit e4ff27f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/rnote-engine/src/engine/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ impl Engine {
/// Generate image strokes for each page for the bytes.
///
/// The bytes are expected to be from a valid Pdf.
///
/// Note: `insert_pos` does not have an effect when the `adjust_document` import pref is set true.
#[allow(clippy::type_complexity)]
pub fn generate_pdf_pages_from_bytes(
&self,
Expand All @@ -323,11 +321,6 @@ impl Engine {
oneshot::channel::<anyhow::Result<Vec<(Stroke, Option<StrokeLayer>)>>>();
let pdf_import_prefs = self.import_prefs.pdf_import_prefs;
let format = self.document.format;
let insert_pos = if self.import_prefs.pdf_import_prefs.adjust_document {
na::Vector2::<f64>::zeros()
} else {
insert_pos
};

rayon::spawn(move || {
let result = || -> anyhow::Result<Vec<(Stroke, Option<StrokeLayer>)>> {
Expand Down

0 comments on commit e4ff27f

Please sign in to comment.