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
63d6e6d2
Commit
63d6e6d2
authored
Jan 30, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for SANKORE-3.
parent
d6f500e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
UBSvgSubsetAdaptor.cpp
src/adaptors/UBSvgSubsetAdaptor.cpp
+1
-1
UBGraphicsMediaItem.cpp
src/domain/UBGraphicsMediaItem.cpp
+3
-2
No files found.
src/adaptors/UBSvgSubsetAdaptor.cpp
View file @
63d6e6d2
...
@@ -1836,7 +1836,7 @@ UBGraphicsAudioItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::audioItemFromSvg()
...
@@ -1836,7 +1836,7 @@ UBGraphicsAudioItem* UBSvgSubsetAdaptor::UBSvgSubsetReader::audioItemFromSvg()
href
=
mDocumentPath
+
"/"
+
href
.
right
(
href
.
length
()
-
indexOfAudioDirectory
);
href
=
mDocumentPath
+
"/"
+
href
.
right
(
href
.
length
()
-
indexOfAudioDirectory
);
}
}
UBGraphicsAudioItem
*
audioItem
=
new
UBGraphicsAudioItem
(
href
);
UBGraphicsAudioItem
*
audioItem
=
new
UBGraphicsAudioItem
(
QUrl
::
fromLocalFile
(
href
)
);
graphicsItemFromSvg
(
audioItem
);
graphicsItemFromSvg
(
audioItem
);
QStringRef
ubPos
=
mXmlReader
.
attributes
().
value
(
mNamespaceUri
,
"position"
);
QStringRef
ubPos
=
mXmlReader
.
attributes
().
value
(
mNamespaceUri
,
"position"
);
...
...
src/domain/UBGraphicsMediaItem.cpp
View file @
63d6e6d2
...
@@ -86,12 +86,13 @@ QVariant UBGraphicsMediaItem::itemChange(GraphicsItemChange change, const QVaria
...
@@ -86,12 +86,13 @@ QVariant UBGraphicsMediaItem::itemChange(GraphicsItemChange change, const QVaria
void
UBGraphicsMediaItem
::
clearSource
()
void
UBGraphicsMediaItem
::
clearSource
()
{
{
QString
path
=
mediaFileUrl
().
path
();
QString
path
=
mediaFileUrl
().
toLocalFile
();
//if path is absolute clean duplicated path string
//if path is absolute clean duplicated path string
if
(
!
path
.
contains
(
UBApplication
::
boardController
->
activeDocument
()
->
persistencePath
()))
if
(
!
path
.
contains
(
UBApplication
::
boardController
->
activeDocument
()
->
persistencePath
()))
path
=
UBApplication
::
boardController
->
activeDocument
()
->
persistencePath
()
+
"/"
+
path
;
path
=
UBApplication
::
boardController
->
activeDocument
()
->
persistencePath
()
+
"/"
+
path
;
UBFileSystemUtils
::
deleteFile
(
path
);
if
(
!
UBFileSystemUtils
::
deleteFile
(
path
))
qDebug
()
<<
"cannot delete file: "
<<
path
;
}
}
void
UBGraphicsMediaItem
::
toggleMute
()
void
UBGraphicsMediaItem
::
toggleMute
()
...
...
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