diff --git a/src/SeerArrayVisualizerWidget.cpp b/src/SeerArrayVisualizerWidget.cpp index b634bc7..2790713 100644 --- a/src/SeerArrayVisualizerWidget.cpp +++ b/src/SeerArrayVisualizerWidget.cpp @@ -952,19 +952,19 @@ void SeerArrayVisualizerWidget::handleDataChanged () { _aSeries->setPointLabelsVisible(false); _aSeries->setPointLabelsClipping(true); - const QVector& xvalues = arrayTableWidget->aArrayValues(); - const QVector& yvalues = arrayTableWidget->bArrayValues(); + const QVector& avalues = arrayTableWidget->aArrayValues(); + const QVector& bvalues = arrayTableWidget->bArrayValues(); - if (arrayTableWidget->aAxis() == "Y" && arrayTableWidget->bAxis() == "X") { + if (arrayTableWidget->aAxis() == "X" && arrayTableWidget->bAxis() == "Y") { - for (int i = 0; i < std::min(xvalues.size(),yvalues.size()); ++i) { - _aSeries->append(xvalues[i], yvalues[i]); + for (int i = 0; i < std::min(avalues.size(),bvalues.size()); ++i) { + _aSeries->append(avalues[i], bvalues[i]); } - }else if (arrayTableWidget->aAxis() == "X" && arrayTableWidget->bAxis() == "Y") { + }else if (arrayTableWidget->aAxis() == "Y" && arrayTableWidget->bAxis() == "X") { - for (int i = 0; i < std::min(xvalues.size(),yvalues.size()); ++i) { - _aSeries->append(yvalues[i], xvalues[i]); + for (int i = 0; i < std::min(avalues.size(),bvalues.size()); ++i) { + _aSeries->append(bvalues[i], avalues[i]); } }else{ diff --git a/tests/hello482/.gitignore b/tests/hello482/.gitignore new file mode 100644 index 0000000..f94c2be --- /dev/null +++ b/tests/hello482/.gitignore @@ -0,0 +1 @@ +hello482 diff --git a/tests/hello482/Makefile b/tests/hello482/Makefile new file mode 100644 index 0000000..7f42b1b --- /dev/null +++ b/tests/hello482/Makefile @@ -0,0 +1,11 @@ +.PHONY: all + +all: hello482 + +hello482: hello482.cpp + g++ -g -o hello482 hello482.cpp + +.PHONY: clean +clean: + rm -f hello482 hello482.o + diff --git a/tests/hello482/breakpoints.seer b/tests/hello482/breakpoints.seer new file mode 100644 index 0000000..8c444e6 --- /dev/null +++ b/tests/hello482/breakpoints.seer @@ -0,0 +1 @@ +break -source /nas/erniep/Development/seer/tests/hello482/hello482.cpp -line 15 diff --git a/tests/hello482/hello482.cpp b/tests/hello482/hello482.cpp new file mode 100644 index 0000000..1014975 --- /dev/null +++ b/tests/hello482/hello482.cpp @@ -0,0 +1,17 @@ +#include +#include + +int main () { + + double a[100]; + double b[100]; + + for (int i=0; i<100; i++) { + + a[i] = i; + b[i] = i*i; + } + + return 0; +} + diff --git a/tests/hello482/project.seer b/tests/hello482/project.seer new file mode 100644 index 0000000..7186e69 --- /dev/null +++ b/tests/hello482/project.seer @@ -0,0 +1,25 @@ +{ + "seerproject": { + "executable": "hello482", + "postgdbcommands": [ + "" + ], + "pregdbcommands": [ + "" + ], + "startmode": { + "arguments": "", + "breakatfirstinstruction": false, + "breakinfunction": false, + "breakinfunctionname": "", + "breakinmain": true, + "breakpointsfile": "/nas/erniep/Development/seer/tests/hello482/breakpoints.seer", + "nobreak": false, + "nonstopmode": false, + "randomizestartaddress": false, + "showassemblytabmode": "auto" + }, + "symbolfile": "", + "workingdirectory": "" + } +}