Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/d740a60abcdeefeb04eaabf0a8b0adc7b257ea10
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
7 additions and
2 deletions
src/board/UBBoardController.cpp
src/frameworks/UBGeometryUtils.cpp
src/frameworks/UBGeometryUtils.h
src/tools/UBAbstractDrawRuler.cpp
@ -109,7 +109,10 @@ UBBoardController::UBBoardController(UBMainWindow* mainWindow)
mMarkerColorOnDarkBackground = UBSettings : : settings ( ) - > markerColors ( true ) . at ( markerColorIndex ) ;
mMarkerColorOnLightBackground = UBSettings : : settings ( ) - > markerColors ( false ) . at ( markerColorIndex ) ;
UBSettings : : settings ( ) - > crossSize = UBGeometryUtils : : millimetersPerCentimeter * 4 ;
QDesktopWidget * desktop = UBApplication : : desktop ( ) ;
int dpiCommon = ( desktop - > physicalDpiX ( ) + desktop - > physicalDpiY ( ) ) / 2 ;
int sPixelsPerMillimeter = qRound ( dpiCommon / UBGeometryUtils : : inchSize ) ;
UBSettings : : settings ( ) - > crossSize = 10 * sPixelsPerMillimeter ;
}
@ -23,6 +23,7 @@ const int UBGeometryUtils::halfCentimeterGraduationHeight = 10;
const int UBGeometryUtils : : millimeterGraduationHeight = 5 ;
const int UBGeometryUtils : : millimetersPerCentimeter = 10 ;
const int UBGeometryUtils : : millimetersPerHalfCentimeter = 5 ;
const float UBGeometryUtils : : inchSize = 25.4f ;
UBGeometryUtils : : UBGeometryUtils ( )
{
@ -43,6 +43,7 @@ class UBGeometryUtils
const static int millimeterGraduationHeight ;
const static int millimetersPerCentimeter ;
const static int millimetersPerHalfCentimeter ;
const static float inchSize ;
} ;
# endif /* UBGEOMETRYUTILS_H_ */
@ -47,7 +47,7 @@ UBAbstractDrawRuler::UBAbstractDrawRuler()
//we actually need to evaluate pixels per millimeter
QDesktopWidget * desktop = UBApplication : : desktop ( ) ;
int dpiCommon = ( desktop - > physicalDpiX ( ) + desktop - > physicalDpiY ( ) ) / 2 ;
sPixelsPerMillimeter = qRound ( dpiCommon / 25.4f ) ; //because 1inch = 25.4 mm
sPixelsPerMillimeter = qRound ( dpiCommon / UBGeometryUtils : : inchSize ) ;
}