QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)

Tasklist

FS#540 - "pa" ("parallel") keycode triggers wrong action

Attached to Project: QCAD
Opened by Matthew Rench (mdrench) - Tuesday, 10 April 2012, 05:32 GMT+2
Last edited by Andrew (andrew) - Saturday, 02 March 2013, 15:40 GMT+2
Task Type Bug Report
Category Main
Status Closed
Assigned To Andrew (andrew)
Operating System All
Severity Very Low
Priority Low
Reported Version n/a
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In the latest QCAD Community Edition source code (2.0.5.0-1-community), the wrong action is triggered for the “pa” keycode. Specifically, it triggers the basic draw line command. Here is the relevant code from qcadcmd/src/rs_commands.cpp, in RS_Commands::keycodeToAction:

  } else if (c==tr("li", "line")) {
      ret = RS2::ActionDrawLine;
  } else if (c==tr("pa", "parallel")) {
      ret = RS2::ActionDrawLine;

I believe this should instead be:

  } else if (c==tr("li", "line")) {
      ret = RS2::ActionDrawLine;
  } else if (c==tr("pa", "parallel")) {
      ret = RS2::ActionDrawLineParallel;
This task depends upon

Closed by  Andrew (andrew)
Saturday, 02 March 2013, 15:40 GMT+2
Reason for closing:  Won't fix
Additional comments about closing:  Outdated.

Loading...