forked from 1b-agent/opencadstudio-upstream
fix(plot): EXPORTPDF proposes PDF after EXPORTSVG; SVG strings in every locale
EXPORTSVG left the plot dialog's SVG device on, so a later EXPORTPDF still offered a .svg file. The SVG save dialog and plot button texts had no catalog entries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
fb474eb77c
commit
64e9b612cb
24 files changed
+74
-1
No files matched your search
@@ -967,7 +967,11 @@ impl OpenCADStudio {
|
||||
self.command_line.push_output(&line);
|
||||
}
|
||||
}
|
||||
"EXPORT" | "EXPORTPDF" => {
|
||||
"EXPORT" => {
|
||||
return Some(Task::done(Message::PlotExport));
|
||||
}
|
||||
"EXPORTPDF" => {
|
||||
self.plot_dialog.file_svg = false;
|
||||
return Some(Task::done(Message::PlotExport));
|
||||
}
|
||||
// EXPORTSVG — the same direct export, but the save dialog
|
||||
|
||||
@@ -1414,6 +1414,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
|
||||
"Explode" => Some(("modify", "explode")),
|
||||
"Export" => Some(("manage", "export")),
|
||||
"Export PDF" => Some(("plot", "export-pdf")),
|
||||
"Export SVG" => Some(("plot", "export-svg")),
|
||||
"Ext Rotation (deg)" => Some(("properties", "ext-rotation-deg")),
|
||||
"Ext line 1" => Some(("properties", "ext-line-1")),
|
||||
"Ext line 1 linetype (DIMLTEX1)" => Some(("styles", "ext-line-1-linetype-dimltex1")),
|
||||
@@ -4135,6 +4136,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
|
||||
"Opened drawing, but recent copy could not be stored: {error}" => Some(("common", "opened-drawing-but-recent-copy-could-not-be-stored")),
|
||||
"Select PDF Underlay" => Some(("common", "select-pdf-underlay")),
|
||||
"PDF Files" => Some(("common", "pdf-files")),
|
||||
"SVG Files" => Some(("common", "svg-files")),
|
||||
"DWF Files" => Some(("common", "dwf-files")),
|
||||
"DGN Files" => Some(("common", "dgn-files")),
|
||||
"Select DWF File" => Some(("common", "select-dwf-file")),
|
||||
@@ -4321,6 +4323,7 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
|
||||
"PNG" => Some(("common", "png")),
|
||||
"JPEG" => Some(("common", "jpeg")),
|
||||
"Export as PDF" => Some(("common", "export-as-pdf")),
|
||||
"Export as SVG" => Some(("common", "export-as-svg")),
|
||||
"DIMARC Enter dimension text (blank = measured value):" => Some(("annotate", "dimarc-enter-dimension-text-blank-measured-value")),
|
||||
"DIMARC Specify text angle (degrees):" => Some(("annotate", "dimarc-specify-text-angle-degrees")),
|
||||
"DIMARC Select arc or polyline arc segment:" => Some(("annotate", "dimarc-select-arc-or-polyline-arc-segment")),
|
||||
|
||||
Reference in new issue
Block a user