diff --git a/qad/graphic/graphic.h b/qad/graphic/graphic.h index 1dd457d..125758c 100644 --- a/qad/graphic/graphic.h +++ b/qad/graphic/graphic.h @@ -234,7 +234,8 @@ public slots: void setGraphicColor(const QColor & color) {setGraphicColor(color, curGraphic);} void setGridColor(const QColor & color) {grid_pen.setColor(color); if (aupdate) update();} void setSelectionColor(const QColor & color) {selpen.setColor(color);} - void setGraphicStyle(const Qt::PenStyle & style) {graphics[curGraphic].pen.setStyle(style); updateLegend(); if (aupdate) update();} + void setGraphicStyle(const Qt::PenStyle & style, int index) {graphics[index].pen.setStyle(style); updateLegend(); if (aupdate) update();} + void setGraphicStyle(const Qt::PenStyle & style) {setGraphicStyle(style, curGraphic);} void setGridStyle(const Qt::PenStyle & style) {grid_pen.setStyle(style); if (aupdate) update();} void setSelectionStyle(const Qt::PenStyle & style) {selpen.setStyle(style);} void setGraphicVisible(bool visible, int index) {graphics[index].visible = visible; updateLegendChecks(); if (aupdate) update();}