DelazJ / MapsPrinter

A QGIS plugin to export simultaneously multiple print layouts to various file formats
GNU General Public License v3.0
23 stars 6 forks source link

Export fails when layout name contains slash #48

Closed buttercookie42 closed 2 years ago

buttercookie42 commented 2 years ago

Describe the bug If a layout name happens to contain a slash, the export fails.

To Reproduce Steps to reproduce the behavior:

  1. Create a layout with a slash in its name, e.g. "Exampletown North/South-Link".
  2. Try exporting the layout via Maps Printer.
  3. It fails.

Expected behavior The layout is exported, any characters in the layout title that are illegal for file names (at the very least the path separator, on Windows the full complement of illegal characters seems to be \ / : ? " < > |) are replaced by some suitable substitute. If I try exporting that layout directly via QGIS's built-in export, the proposed default filename replaces the slash with an underscore, Maps Printer should do something similar.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):