forked from 1b-agent/opencadstudio-upstream
PDFIMPORT: stored image paths use one separator style
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
72f7ff5cc5
commit
005594fc58
1 file changed
+7
-1
@@ -111,8 +111,14 @@ impl OpenCADStudio {
|
|||||||
{
|
{
|
||||||
continue;
|
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(
|
let mut raster = codec::entities::RasterImage::with_size(
|
||||||
file.to_string_lossy().as_ref(),
|
&stored,
|
||||||
image.insertion,
|
image.insertion,
|
||||||
image.width as f64,
|
image.width as f64,
|
||||||
image.height as f64,
|
image.height as f64,
|
||||||
|
|||||||
Reference in new issue
Block a user