Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/c28c971801d6beba87ecc5e2ee7ebd78abe113b9
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
4 additions and
9 deletions
src/board/UBBoardView.cpp
src/domain/UBGraphicsScene.cpp
src/domain/UBGraphicsWidgetItem.cpp
@ -308,7 +308,6 @@ UBBoardView::event (QEvent * e)
if ( gestureEvent )
{
QSwipeGesture * swipe = dynamic_cast < QSwipeGesture * > ( gestureEvent - > gesture ( Qt : : SwipeGesture ) ) ;
if ( swipe )
{
if ( swipe - > horizontalDirection ( ) = = QSwipeGesture : : Left )
@ -363,9 +362,7 @@ void UBBoardView::tabletEvent (QTabletEvent * event)
QPointF scenePos = viewportTransform ( ) . inverted ( ) . map ( tabletPos ) ;
qreal pressure = 1.0 ;
if ( ( ( currentTool = = UBStylusTool : : Pen | | currentTool = = UBStylusTool : : Line )
& & mPenPressureSensitive )
| | ( currentTool = = UBStylusTool : : Marker & & mMarkerPressureSensitive ) )
if ( ( ( currentTool = = UBStylusTool : : Pen | | currentTool = = UBStylusTool : : Line ) & & mPenPressureSensitive ) | | ( currentTool = = UBStylusTool : : Marker & & mMarkerPressureSensitive ) )
pressure = event - > pressure ( ) ;
@ -582,8 +582,8 @@ bool UBGraphicsScene::inputDeviceRelease()
addItem ( pStrokes ) ;
mDrawWithCompass = false ;
} else if ( mCurrentStroke )
{
}
else if ( mCurrentStroke ) {
UBGraphicsStrokesGroup * pStrokes = new UBGraphicsStrokesGroup ( ) ;
// Remove the strokes that were just drawn here and replace them by a stroke item
@ -563,10 +563,8 @@ void UBGraphicsWidgetItem::injectInlineJavaScript()
void UBGraphicsWidgetItem : : paint ( QPainter * painter , const QStyleOptionGraphicsItem * option , QWidget * widget )
{
if ( ! scene ( ) | | ! scene ( ) - > renderingContext ( ) )
return ;
if ( scene ( ) - > renderingContext ( ) ! = UBGraphicsScene : : Screen )
if ( scene ( ) & & scene ( ) - > renderingContext ( ) ! = UBGraphicsScene : : Screen )
{
painter - > drawPixmap ( 0 , 0 , snapshot ( ) ) ;
}