← All bug reports

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

Type
Bug
Status
Closed
Resolution
Won't fix
Category
QCAD (main)
Severity
Very Low
Priority
Very Low
Reported version
n/a
Operating system
All
Reported
2012-04-10 by mdrench
Closed
2013-03-02 by andrew

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;

Closure comment

Outdated.