mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Profile: stop animations on export
The plotDive() function had a flag to plot pictures asynchronously. This was used on export. Rename this field to "instant" and disable animations when set. This should make sure that the axes are properly exported. Fixes #2170 Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f93e0aafd5
commit
efe9bcce02
3 changed files with 5 additions and 4 deletions
|
@ -548,7 +548,7 @@ void ProfileWidget2::resetZoom()
|
|||
}
|
||||
|
||||
// Currently just one dive, but the plan is to enable All of the selected dives.
|
||||
void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPictures, bool plotPicturesSynchronously)
|
||||
void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPictures, bool instant)
|
||||
{
|
||||
static bool firstCall = true;
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
|
@ -594,7 +594,7 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict
|
|||
}
|
||||
|
||||
// special handling for the first time we display things
|
||||
animSpeed = qPrefDisplay::animation_speed();
|
||||
animSpeed = instant ? 0 : qPrefDisplay::animation_speed();
|
||||
if (firstCall && haveFilesOnCommandLine()) {
|
||||
animSpeed = 0;
|
||||
firstCall = false;
|
||||
|
@ -823,7 +823,7 @@ void ProfileWidget2::plotDive(const struct dive *d, bool force, bool doClearPict
|
|||
if (doClearPictures)
|
||||
clearPictures();
|
||||
else
|
||||
plotPicturesInternal(d, plotPicturesSynchronously);
|
||||
plotPicturesInternal(d, instant);
|
||||
|
||||
toolTipItem->refresh(mapToScene(mapFromGlobal(QCursor::pos())));
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue