]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Repaint the dive after equipment changes
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 21 Oct 2011 12:55:52 +0000 (15:55 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 21 Oct 2011 12:55:52 +0000 (15:55 +0300)
Those changes may have changed cylinder sizes and beginning/end
pressures, so the dive profile and SAC rate may be different.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
equipment.c

index 4f5a703c96b25b035ed9aad511801a5df110023b..4d90741aca21f163dc4c212961270dcdf661f11a 100644 (file)
@@ -522,6 +522,7 @@ static int edit_cylinder_dialog(int index, cylinder_t *cyl)
                dive->cylinder[index] = *cyl;
                mark_divelist_changed(TRUE);
                flush_divelist(dive);
+               repaint_dive();
        }
 
        gtk_widget_destroy(dialog);