PDFIMPORT: stored image paths use one separator style

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-09-25 12:32:50 +03:00
1 parent 72f7ff5cc5
commit 005594fc58
1 file changed
+7 -1
+7 -1
View File
@@ -111,8 +111,14 @@ impl OpenCADStudio {
{
continue;
}
// Rebuilt from its components: one separator style, the platform's.
let stored = file
.components()
.collect::<std::path::PathBuf>()
.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,