Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/716024eb791d9c20c14f4356503bccd37e8b1ef9?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
9 additions and
0 deletions
OpenBoard.pro
src/pdf/XPDFRenderer.cpp
@ -3,6 +3,7 @@ TEMPLATE = app
THIRD_PARTY_PATH =../ OpenBoard - ThirdParty
THIRD_PARTY_PATH =../ OpenBoard - ThirdParty
CONFIG += c ++ 14
CONFIG -= flat
CONFIG -= flat
CONFIG += debug_and_release \
CONFIG += debug_and_release \
no_include_pwd
no_include_pwd
@ -48,7 +48,11 @@ XPDFRenderer::XPDFRenderer(const QString &filename, bool importingFile)
{
{
// globalParams must be allocated once and never be deleted
// globalParams must be allocated once and never be deleted
// note that this is *not* an instance variable of this XPDFRenderer class
// note that this is *not* an instance variable of this XPDFRenderer class
# if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 83
globalParams = std : : make_unique < GlobalParams > ( ) ;
# else
globalParams = new GlobalParams ( 0 ) ;
globalParams = new GlobalParams ( 0 ) ;
# endif
globalParams - > setupBaseFonts ( QFile : : encodeName ( UBPlatformUtils : : applicationResourcesDirectory ( ) + " / " + " fonts " ) . data ( ) ) ;
globalParams - > setupBaseFonts ( QFile : : encodeName ( UBPlatformUtils : : applicationResourcesDirectory ( ) + " / " + " fonts " ) . data ( ) ) ;
}
}
@ -71,8 +75,12 @@ XPDFRenderer::~XPDFRenderer()
if ( sInstancesCount . loadAcquire ( ) = = 0 & & globalParams )
if ( sInstancesCount . loadAcquire ( ) = = 0 & & globalParams )
{
{
# if POPPLER_VERSION_MAJOR > 0 || POPPLER_VERSION_MINOR >= 83
globalParams . reset ( ) ;
# else
delete globalParams ;
delete globalParams ;
globalParams = 0 ;
globalParams = 0 ;
# endif
}
}
}
}