Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/5b063a1f845c930d472a63610fa3e04d723c4c0f You should set ROOT_URL correctly, otherwise the web may not work correctly.

Pixmaps with size less than 100px doesn't crashes sankore on mouse click.

preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent 13b9f6bed8
commit 5b063a1f84
  1. 5
      src/domain/UBGraphicsPixmapItem.cpp

@ -65,8 +65,9 @@ void UBGraphicsPixmapItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
QMimeData* pMime = new QMimeData();
pMime->setImageData(pixmap().toImage());
mDelegate->setMimeData(pMime);
int k = pixmap().width() / 100;
QSize newSize(pixmap().width() / k, pixmap().height() / k);
qreal k = (qreal)pixmap().width() / 100.0;
QSize newSize((int)(pixmap().width() / k), (int)(pixmap().height() / k));
mDelegate->setDragPixmap(pixmap().scaled(newSize, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));

Loading…
Cancel
Save