From 005594fc58b6343b9c6ecd88b9a4736a6a4cf475 Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Fri, 25 Sep 2026 12:32:50 +0300 Subject: [PATCH] PDFIMPORT: stored image paths use one separator style Co-Authored-By: Claude Opus 5.5 --- src/app/commands/pdf_import.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/commands/pdf_import.rs b/src/app/commands/pdf_import.rs index 2d3ca8eed..b60ecc7be 100644 --- a/src/app/commands/pdf_import.rs +++ b/src/app/commands/pdf_import.rs @@ -111,8 +111,14 @@ impl OpenCADStudio { { continue; } + // Rebuilt from its components: one separator style, the platform's. + let stored = file + .components() + .collect::() + .to_string_lossy() + .into_owned(); let mut raster = codec::entities::RasterImage::with_size( - file.to_string_lossy().as_ref(), + &stored, image.insertion, image.width as f64, image.height as f64,