Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting https://git.osmesh.ru/MOS/OpenBoard/commit/873edd98bd5d3afbf6fdc3dd248cd2d09cec38e3?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
9 additions and
0 deletions
src/domain/UBGraphicsItemUndoCommand.cpp
src/domain/UBGraphicsScene.cpp
@ -120,8 +120,12 @@ void UBGraphicsItemUndoCommand::undo()
{
UBGraphicsPolygonItem * polygonItem = qgraphicsitem_cast < UBGraphicsPolygonItem * > ( item ) ;
if ( polygonItem )
{
mScene - > removeItem ( polygonItem ) ;
mScene - > removeItemFromDeletion ( polygonItem ) ;
polygonItem - > strokesGroup ( ) - > addToGroup ( polygonItem ) ;
}
}
UBApplication : : boardController - > freezeW3CWidget ( item , false ) ;
}
@ -225,9 +229,13 @@ void UBGraphicsItemUndoCommand::redo()
UBGraphicsPolygonItem * polygonItem = qgraphicsitem_cast < UBGraphicsPolygonItem * > ( item ) ;
if ( polygonItem )
{
mScene - > removeItem ( polygonItem ) ;
mScene - > removeItemFromDeletion ( polygonItem ) ;
polygonItem - > strokesGroup ( ) - > addToGroup ( polygonItem ) ;
}
}
}
// force refresh, QT is a bit lazy and take a lot of time (nb item ^2) to trigger repaint
mScene - > update ( mScene - > sceneRect ( ) ) ;
@ -843,6 +843,7 @@ void UBGraphicsScene::eraseLineTo(const QPointF &pEndPoint, const qreal &pWidth)
//remove full polygon item for replace it by couple of polygons who creates the same stroke without a part which intersects with eraser
mRemovedItems < < intersectedPolygonItem ;
intersectedPolygonItem - > strokesGroup ( ) - > removeFromGroup ( intersectedPolygonItem ) ;
removeItem ( intersectedPolygonItem ) ;
}