actual version libs withiout pip
git-svn-id: svn://db.shs.com.ru/libs@2 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -535,20 +535,20 @@ void Graphic::addPoint(const QPointF & p, int graphic, bool update_) {
|
||||
}
|
||||
|
||||
|
||||
void Graphic::setGraphicData(const QVector<QPointF> & g, int graphic, bool update_) {
|
||||
void Graphic::setGraphicData(const QVector<QPointF> & g, int graphic) {
|
||||
if (graphic >= graphics.size() || graphic < 0) return;
|
||||
graphics[graphic].polyline.clear();
|
||||
graphics[graphic].polyline = QPolygonF(g);
|
||||
if (graphics.at(graphic).polyline.size() == 0) {
|
||||
graphics[graphic].max_x = 0.;
|
||||
tick(graphic, false, update_);
|
||||
tick(graphic, false);
|
||||
return;
|
||||
}
|
||||
graphics[graphic].max_x = graphics.at(graphic).polyline[0].x();
|
||||
for (int i = 1; i < graphics.at(graphic).polyline.size(); ++i)
|
||||
if (graphics.at(graphic).max_x < graphics.at(graphic).polyline[i].x())
|
||||
graphics[graphic].max_x = graphics.at(graphic).polyline[i].x();
|
||||
tick(graphic, false, update_);
|
||||
tick(graphic, false);
|
||||
}
|
||||
|
||||
|
||||
@@ -1074,7 +1074,6 @@ void Graphic::tick(int index, bool slide, bool update_) {
|
||||
}
|
||||
}
|
||||
if (!update_) {
|
||||
findGraphicsRect();
|
||||
mutex.unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user