BUGFIX: correctly render the currently selected chart when exporting to image files
This commit is contained in:
@ -103,7 +103,10 @@ void ChartWindow::saveAs()
|
|||||||
QString fileName = QFileDialog::getSaveFileName(this, "Save Chart as Image", defaultname,
|
QString fileName = QFileDialog::getSaveFileName(this, "Save Chart as Image", defaultname,
|
||||||
"Image Files (*.jpg *.png *.bmp *.ppm)");
|
"Image Files (*.jpg *.png *.bmp *.ppm)");
|
||||||
if (!fileName.isEmpty()) {
|
if (!fileName.isEmpty()) {
|
||||||
charts[active_chart]->grab().save(fileName);
|
int choice = columns->currentData().toInt();
|
||||||
|
for (auto &c : charts) {
|
||||||
|
if (choice == c->get_index()) c->grab().save(fileName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user