Need help on replete

Robert Helling helling at lmu.de
Thu Jan 29 08:56:32 PST 2015


Hi,

I am lost. I am trying to get
void MainTab::divetype_Changed(int index)

in maintab.cpp to work. This is called when the combo box with the divetype is changed (to pSCR for example). This function gets called and sets the divetype of the displayed_dive accordingly. But then I want a replete (to reflect the different divemode in the profile picture. So I call

	MainWindow::instance()->graphics()->replot();

But somehow this copies the current dive over the displayed dive and thus resets the value of displayed_dive.dc.divetype.

How do I do this correctly? Tomaz (master of profile)? Dirk (master of displayed_dive/current_dive)?

I am lost. If I comment out the replot line it works (after pressing the apply changes button) but an updated profile would be nice.

Best
Robert

--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                      Scientific Coordinator
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
                      Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
                      http://www.atdotde.de

Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515  BB44 0820 367C 36BC 0C1D    and
DCED 37B6 251C 7861 270D  5613 95C7 9D32 9A8D 9B8F





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150129/55a533c3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150129/55a533c3/attachment.sig>


More information about the subsurface mailing list