Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/8b8fbde300b9bc3d7790593d9a5b01c97fb86c51?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
10 additions and
3 deletions
src/board/UBBoardController.cpp
src/core/UB.h
@ -687,9 +687,16 @@ void UBBoardController::zoom(const qreal ratio, QPointF scenePoint)
QPointF offset = scenePoint - viewCenter ;
QPointF scalledOffset = offset / ratio ;
mControlView - > scale ( ratio , ratio ) ;
qreal currentZoom = ratio * mControlView - > viewportTransform ( ) . m11 ( ) / mSystemScaleFactor ;
qreal currentZoom = mControlView - > viewportTransform ( ) . m11 ( ) / mSystemScaleFactor ;
qreal usedRatio = ratio ;
if ( currentZoom > UB_MAX_ZOOM )
{
currentZoom = UB_MAX_ZOOM ;
usedRatio = currentZoom * mSystemScaleFactor / mControlView - > viewportTransform ( ) . m11 ( ) ;
}
mControlView - > scale ( usedRatio , usedRatio ) ;
QPointF newCenter = scenePoint - scalledOffset ;
@ -18,7 +18,7 @@
# include <QtGui>
# define UB_MAX_ZOOM 15
# define UB_MAX_ZOOM 9
struct UBMimeType
{