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

Andrei Zavada johnhommer at gmail.com
Sun Jul 21 19:56:36 UTC 2013


The following commit has been merged in the master branch:
commit 7fed82f5d375ec0e02d76af1969b139415f1a516
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Fri Jul 19 01:27:31 2013 +0300

    SF: only modify drawn profiles' scale with scroll

diff --git a/src/aghermann/ui/sf/montage_cb.cc b/src/aghermann/ui/sf/montage_cb.cc
index d8a0163..b025c96 100644
--- a/src/aghermann/ui/sf/montage_cb.cc
+++ b/src/aghermann/ui/sf/montage_cb.cc
@@ -463,14 +463,20 @@ daSFMontage_scroll_event_cb(
 		} else {
 			switch ( event->direction ) {
 			case GDK_SCROLL_DOWN:
-				Ch->psd.display_scale /= SF._p.scroll_factor;
-				Ch->swu.display_scale /= SF._p.scroll_factor;
-				Ch->mc.display_scale  /= SF._p.scroll_factor;
+				if ( Ch->draw_psd )
+					Ch->psd.display_scale /= SF._p.scroll_factor;
+				if ( Ch->draw_swu )
+					Ch->swu.display_scale /= SF._p.scroll_factor;
+				if ( Ch->draw_mc )
+					Ch->mc.display_scale  /= SF._p.scroll_factor;
 			    break;
 			case GDK_SCROLL_UP:
-				Ch->psd.display_scale *= SF._p.scroll_factor;
-				Ch->swu.display_scale *= SF._p.scroll_factor;
-				Ch->mc.display_scale  *= SF._p.scroll_factor;
+				if ( Ch->draw_psd )
+					Ch->psd.display_scale *= SF._p.scroll_factor;
+				if ( Ch->draw_swu )
+					Ch->swu.display_scale *= SF._p.scroll_factor;
+				if ( Ch->draw_mc )
+					Ch->mc.display_scale  *= SF._p.scroll_factor;
 			    break;
 			case GDK_SCROLL_LEFT:
 				if ( SF.cur_vpage() > 0 )

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list