graphic fix

This commit is contained in:
peri4
2021-10-21 18:48:55 +03:00
parent 4c264773a5
commit 4717e8e8de
2 changed files with 10 additions and 1 deletions

View File

@@ -2064,6 +2064,15 @@ void Graphic::setCaption(const QString & str) {
}
void Graphic::setGraphicVisible(bool visible, int index) {
graphics[index].visible = visible;
updateLegendChecks();
if (isFit) on_graphic_buttonAutofit_clicked();
else if (aupdate)
update();
}
void Graphic::setGridEnabled(bool enabled) {
ui->graphic_checkGrid->setChecked(enabled);
}