Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
543e547e
Commit
543e547e
authored
Feb 24, 2014
by
-f
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sankore 1159
parent
b2646904
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+3
-2
XPDFRenderer.cpp
src/pdf/XPDFRenderer.cpp
+1
-1
No files found.
src/document/UBDocumentController.cpp
View file @
543e547e
...
...
@@ -963,8 +963,9 @@ void UBDocumentController::importFile()
if
(
group
)
{
QString
defaultPath
=
UBSettings
::
settings
()
->
lastImportFilePath
->
get
().
toString
();
QString
filePath
=
QFileDialog
::
getOpenFileName
(
mParentWidget
,
tr
(
"Open Supported File"
),
defaultPath
,
docManager
->
importFileFilter
());
if
(
defaultPath
.
isDetached
())
defaultPath
=
UBSettings
::
settings
()
->
userDocumentDirectory
();
QString
filePath
=
QFileDialog
::
getOpenFileName
(
mParentWidget
,
tr
(
"Open Supported File"
),
defaultPath
,
docManager
->
importFileFilter
());
QApplication
::
setOverrideCursor
(
QCursor
(
Qt
::
WaitCursor
));
QApplication
::
processEvents
();
...
...
src/pdf/XPDFRenderer.cpp
View file @
543e547e
...
...
@@ -49,7 +49,7 @@ XPDFRenderer::XPDFRenderer(const QString &filename, bool importingFile)
globalParams
->
setupBaseFonts
(
QFile
::
encodeName
(
UBPlatformUtils
::
applicationResourcesDirectory
()
+
"/"
+
"fonts"
).
data
());
}
mDocument
=
new
PDFDoc
(
new
GString
(
filename
.
to
Utf8
().
data
()),
0
,
0
,
0
);
// the filename GString is deleted on PDFDoc desctruction
mDocument
=
new
PDFDoc
(
new
GString
(
filename
.
to
Local8Bit
()),
0
,
0
,
0
);
// the filename GString is deleted on PDFDoc desctruction
sInstancesCount
.
ref
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment