mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix building with NO_MARBLE issue
We can't build with -DNO_MARBLE after some previous commit broke
globe.cpp
- centerOnCurrentDive() is still existing in the code while removed from
header in 6b81fb49d0
.
- Some referenced to MainWindow::instance()->globe() even if we are
building with no marble.
- include stdint.h
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d9801b67b4
commit
d88da53586
3 changed files with 8 additions and 1 deletions
|
@ -999,8 +999,10 @@ void MainTab::rejectChanges()
|
|||
DivePictureModel::instance()->updateDivePictures();
|
||||
// the user could have edited the location and then canceled the edit
|
||||
// let's get the correct location back in view
|
||||
#ifndef NO_MARBLE
|
||||
MainWindow::instance()->globe()->centerOnDiveSite(displayed_dive.dive_site_uuid);
|
||||
MainWindow::instance()->globe()->reload();
|
||||
#endif
|
||||
// show the profile and dive info
|
||||
MainWindow::instance()->graphics()->replot();
|
||||
MainWindow::instance()->setEnabledToolbar(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue