Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Marble
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Education
Marble
Commits
ebfb0cd9
Commit
ebfb0cd9
authored
Jul 03, 2016
by
Dennis Nienhüser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use delayed deletion
parent
b256a1f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/lib/marble/declarative/MarbleQuickItem.cpp
src/lib/marble/declarative/MarbleQuickItem.cpp
+4
-4
No files found.
src/lib/marble/declarative/MarbleQuickItem.cpp
View file @
ebfb0cd9
...
...
@@ -436,7 +436,7 @@ namespace Marble
delete
d
->
m_placemarkItem
;
d
->
m_placemarkItem
=
nullptr
;
delete
d
->
m_placemark
;
d
->
m_placemark
=
new
Placemark
;
d
->
m_placemark
=
new
Placemark
(
this
)
;
d
->
m_placemark
->
coordinate
()
->
setCoordinates
(
coordinates
);
d
->
m_reverseGeocoding
.
reverseGeocoding
(
coordinates
);
}
...
...
@@ -557,11 +557,11 @@ namespace Marble
if
(
feature
->
nodeType
()
==
GeoDataTypes
::
GeoDataPlacemarkType
)
{
GeoDataPlacemark
const
*
placemark
=
static_cast
<
const
GeoDataPlacemark
*>
(
feature
);
if
(
d
->
m_placemark
&&
placemark
->
coordinate
()
==
d
->
m_placemark
->
coordinate
()
->
coordinates
())
{
d
elete
d
->
m_placemark
;
d
->
m_placemark
->
deleteLater
()
;
d
->
m_placemark
=
nullptr
;
}
else
{
d
elete
d
->
m_placemark
;
d
->
m_placemark
=
new
Placemark
;
d
->
m_placemark
->
deleteLater
()
;
d
->
m_placemark
=
new
Placemark
(
this
)
;
d
->
m_placemark
->
setGeoDataPlacemark
(
*
placemark
);
}
delete
d
->
m_placemarkItem
;
...
...
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