Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/2e7efcd568d549418313ac7892e88ca8a8ee0808?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
11 additions and
5 deletions
src/domain/UBGraphicsScene.cpp
@ -768,15 +768,21 @@ void UBGraphicsScene::eraseLineTo(const QPointF &pEndPoint, const qreal &pWidth)
itemPainterPath . addPolygon ( pi - > sceneTransform ( ) . map ( pi - > polygon ( ) ) ) ;
itemPainterPath . addPolygon ( pi - > sceneTransform ( ) . map ( pi - > polygon ( ) ) ) ;
if ( eraserPath . contains ( itemPainterPath ) )
if ( eraserPath . contains ( itemPainterPath ) )
{
{
// Compele remove item
# pragma omp critical
intersectedItems < < pi ;
{
intersectedPolygons < < QPolygonF ( ) ;
// Compele remove item
intersectedItems < < pi ;
intersectedPolygons < < QPolygonF ( ) ;
}
}
}
else if ( eraserPath . intersects ( itemPainterPath ) )
else if ( eraserPath . intersects ( itemPainterPath ) )
{
{
QPainterPath newPath = itemPainterPath . subtracted ( eraserPath ) ;
QPainterPath newPath = itemPainterPath . subtracted ( eraserPath ) ;
intersectedItems < < pi ;
# pragma omp critical
intersectedPolygons < < newPath . simplified ( ) . toFillPolygon ( pi - > sceneTransform ( ) . inverted ( ) ) ;
{
intersectedItems < < pi ;
intersectedPolygons < < newPath . simplified ( ) . toFillPolygon ( pi - > sceneTransform ( ) . inverted ( ) ) ;
}
}
}
}
}