git-svn-id: svn://db.shs.com.ru/libs@485 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-01-31 15:28:20 +00:00
parent b9c8f7c0a4
commit e70b7baf0a
5 changed files with 17 additions and 5 deletions

View File

@@ -1108,7 +1108,7 @@ QPair<QString, QString> Graphic::gridMark(double v) const {
void Graphic::drawGraphics() {
if (isHover)
ui->status->setText(tr("Cursor: ") + pointCoords(canvas2real(QPointF(curpos))));
QPointF srp = -selrect.topLeft(), cp;
QPointF srp = -selrect.topLeft();
double sclx, scly, wid = canvas->width(), hei = canvas->height() - legy;
sclx = (wid - gridborder.x() - margins_.left() - margins_.width()) / selrect.width();
scly = (hei - gridborder.y() - margins_.top() - margins_.height()) / selrect.height();