QCAD Bugtracker

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category QCAD (main)
  • Assigned To
    Andrew
  • Operating System All
  • Severity Very Low
  • Priority Very Low
  • Reported Version 3.26.4
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by Felix Buenemann - 23.07.2021
Last edited by Andrew - 23.07.2021

FS#2263 - dwg2svg -min-lineweight option parsing broken

The parsing for the -min-lineweight option of dwg2svg is broken, only -w or the undocumented -minlineweight options work.

This is due to a typo in the Dwg2Svg.js script around line 225:

      properties["minLineweight"] = getArgument(args, "-w", "-min-lineweight");
      if (isNull(properties["minlineweight"])) {
          properties["minLineweight"] = getArgument(args, "-w", "-minlineweight");
      }

This should be:

      properties["minLineweight"] = getArgument(args, "-w", "-min-lineweight");
      if (isNull(properties["minLineweight"])) {
          properties["minLineweight"] = getArgument(args, "-w", "-minlineweight");
      }

Note the case minlineweight vs minLineweight.

This has the consequence that the value parsed form -min-lineweight is always replaced with the value from -minlineweight, which is usually undefined.

Since the short option -w is parsed in both cases, it is not affected from the bug.

Closed by  Andrew
23.07.2021 14:39
Reason for closing:  Fixed

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing