Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/490b9dee3e78bb45486cb92f75887296ac5fd5f3?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
12 additions and
1 deletions
resources/etc/OpenBoard.config
src/adaptors/UBExportPDF.cpp
src/core/UBSettings.cpp
src/core/UBSettings.h
@ -128,6 +128,7 @@ Margin=20
PageFormat=A4
PageFormat=A4
Resolution=300
Resolution=300
ZoomBehavior=4
ZoomBehavior=4
ExportBackgroundGrid=false
[Podcast]
[Podcast]
AudioRecordingDevice=Default
AudioRecordingDevice=Default
@ -106,7 +106,15 @@ bool UBExportPDF::persistsDocument(UBDocumentProxy* pDocumentProxy, const QStrin
// set background to white, no crossing for PDF output
// set background to white, no crossing for PDF output
bool isDark = scene - > isDarkBackground ( ) ;
bool isDark = scene - > isDarkBackground ( ) ;
UBPageBackground pageBackground = scene - > pageBackground ( ) ;
UBPageBackground pageBackground = scene - > pageBackground ( ) ;
scene - > setBackground ( false , UBPageBackground : : plain ) ;
if ( UBSettings : : settings ( ) - > exportBackgroundGrid - > get ( ) . toBool ( ) )
{
scene - > setBackground ( false , pageBackground ) ;
}
else
{
scene - > setBackground ( false , UBPageBackground : : plain ) ;
}
// pageSize is the output PDF page size; it is set to equal the scene's boundary size; if the contents
// pageSize is the output PDF page size; it is set to equal the scene's boundary size; if the contents
// of the scene overflow from the boundaries, they will be scaled down.
// of the scene overflow from the boundaries, they will be scaled down.
@ -409,6 +409,7 @@ void UBSettings::init()
pdfZoomBehavior = new UBSetting ( this , " PDF " , " ZoomBehavior " , " 4 " ) ;
pdfZoomBehavior = new UBSetting ( this , " PDF " , " ZoomBehavior " , " 4 " ) ;
enableQualityLossToIncreaseZoomPerfs = new UBSetting ( this , " PDF " , " enableQualityLossToIncreaseZoomPerfs " , true ) ;
enableQualityLossToIncreaseZoomPerfs = new UBSetting ( this , " PDF " , " enableQualityLossToIncreaseZoomPerfs " , true ) ;
exportBackgroundGrid = new UBSetting ( this , " PDF " , " ExportBackgroundGrid " , false ) ;
podcastFramesPerSecond = new UBSetting ( this , " Podcast " , " FramesPerSecond " , 10 ) ;
podcastFramesPerSecond = new UBSetting ( this , " Podcast " , " FramesPerSecond " , 10 ) ;
podcastVideoSize = new UBSetting ( this , " Podcast " , " VideoSize " , " Medium " ) ;
podcastVideoSize = new UBSetting ( this , " Podcast " , " VideoSize " , " Medium " ) ;
@ -361,6 +361,7 @@ class UBSettings : public QObject
UBSetting * pdfZoomBehavior ;
UBSetting * pdfZoomBehavior ;
UBSetting * enableQualityLossToIncreaseZoomPerfs ;
UBSetting * enableQualityLossToIncreaseZoomPerfs ;
UBSetting * exportBackgroundGrid ;
UBSetting * podcastFramesPerSecond ;
UBSetting * podcastFramesPerSecond ;
UBSetting * podcastVideoSize ;
UBSetting * podcastVideoSize ;