[med-svn] [SCM] aghermann branch, master, updated. f0d4c0fd35bf09e7dff56ddb9a2d798ae916c2ef

andrei zavada jh at johnhommer.com
Sun Feb 3 12:52:59 UTC 2013


The following commit has been merged in the master branch:
commit 448709b1a1a823ceef9a9bc6fff09a3f14a13565
Author: andrei zavada <jh at johnhommer.com>
Date:   Mon Jan 28 18:54:58 2013 +0000

    redraw SF correctly on leaving patterns dialog wrt annotations

diff --git a/src/ui/sf/d/patterns_cb.cc b/src/ui/sf/d/patterns_cb.cc
index eefbf36..000d651 100644
--- a/src/ui/sf/d/patterns_cb.cc
+++ b/src/ui/sf/d/patterns_cb.cc
@@ -392,15 +392,14 @@ wSFFD_hide_cb( GtkWidget *widget, gpointer userdata)
 	auto& FD = *(SScoringFacility::SPatternsDialog*)userdata;
 	auto& SF = FD._p;
 
-	if ( not FD.occurrences.empty() ) { // closing while dialog is in matching state
+	if ( not FD.occurrences.empty() ) // closing while dialog is in matching state
 		if ( GTK_RESPONSE_YES !=
 		     aghui::pop_question( SF.wSF, "Keep annotations?") )
 			FD.restore_annotations();
-		else
+		else {
 			SF._p.populate_mGlobalAnnotations();
-	}
-
-	FD.occurrences.clear();
+			SF.queue_redraw_all();
+		}
 
 	gtk_toggle_button_set_active( (GtkToggleButton*)FD.field_channel->_p.bSFShowFindDialog, FALSE);
 }

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list