Commit 10507f21 authored by Adam Goins's avatar Adam Goins Committed by Makayla Shepherd
Browse files

Updated AdvancedTrackTool to call ShowTable() before record(Point) so that the...

Updated AdvancedTrackTool to call ShowTable() before record(Point) so that the first recorded point is displayed in the table.
parent 3609e913
Loading
Loading
Loading
Loading
+23 −18
Original line number Diff line number Diff line
@@ -686,7 +686,9 @@ namespace Isis {
    p_tableWin->setCurrentRow(p_tableWin->currentRow() + p_numRows);
    p_tableWin->setCurrentIndex(p_tableWin->currentIndex() + p_numRows);
    while(p_tableWin->currentRow() >= p_tableWin->table()->rowCount()) {

      row = p_tableWin->table()->rowCount();

      p_tableWin->table()->insertRow(row);
      for(int c = 0; c < p_tableWin->table()->columnCount(); c++) {
        QTableWidgetItem *item = new QTableWidgetItem("");
@@ -717,11 +719,14 @@ namespace Isis {
   *           added to be connected to the FindTool recordPoint()
   *           signal in qview.
   *  @history 2010-05-07 - Eric Hyer - Now shows the table as well
   *  @history 2017-11-13 - Adam Goins - Made the call to showTable() first
   *                            So that the table draws the recorded point if
   *                            the point is the first point record. Fixes #5143.
   */
  void AdvancedTrackTool::record(QPoint p) {
    p_tableWin->showTable();
    updateRow(p);
    record();
    p_tableWin->showTable();
  }


+10 −6
Original line number Diff line number Diff line
@@ -78,6 +78,10 @@ namespace Isis {
   *  @history 2015-12-21 Makayla Shepherd - Changed the ordering of the enum to match the order
   *                          of when the columns are added, in order to fix the incidence and
   *                          emission angle columns from reporting incorrect numbers. Fixes #2381.
   *  @history 2017-11-13 Adam Goins - Updated the record(QPoint p) function to call showTable()
   *                          before it attempts to record a point so that a table is created
   *                          to record the point into so that the first recorded point is drawn.
   *                          Fixes #5143.
   */
  class AdvancedTrackTool : public Tool {
      Q_OBJECT