[Debian-astro-commits] [saods9] 01/03: Fix problem with graphs and image zoomed out

Ole Streicher olebole at moszumanska.debian.org
Fri Apr 14 11:53:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch master
in repository saods9.

commit a06724c06b8e7a8d42dce1cd7c7b2f8931601e1c
Author: Ole Streicher <olebole at debian.org>
Date:   Fri Apr 14 10:53:06 2017 +0200

    Fix problem with graphs and image zoomed out
---
 ...-problem-with-graphs-and-image-zoomed-out.patch | 36 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 37 insertions(+)

diff --git a/debian/patches/Fix-problem-with-graphs-and-image-zoomed-out.patch b/debian/patches/Fix-problem-with-graphs-and-image-zoomed-out.patch
new file mode 100644
index 0000000..578a8da
--- /dev/null
+++ b/debian/patches/Fix-problem-with-graphs-and-image-zoomed-out.patch
@@ -0,0 +1,36 @@
+From: William Joye <wjoye at cfa.harvard.edu>
+Date: Fri, 13 Jan 2017 14:05:10 -0500
+Subject: Fix problem with graphs and image zoomed out
+
+---
+ ds9/library/graph.tcl | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+diff --git a/ds9/library/graph.tcl b/ds9/library/graph.tcl
+index 4e42610..ca507e9 100644
+--- a/ds9/library/graph.tcl
++++ b/ds9/library/graph.tcl
+@@ -261,13 +261,19 @@ proc UpdateGraph {which x y sys} {
+ 
+     if {[$which has fits]} {
+ 	if {$view(graph,horz)} {
+-	    $which get horizontal cut graphHorzX graphHorzY $x $y $sys
+-	    $ds9(graph,horz) element configure line1 -hide no
++	    if {![catch {$which get horizontal cut graphHorzX graphHorzY $x $y $sys}]} {
++		$ds9(graph,horz) element configure line1 -hide no
++	    } else {
++		$ds9(graph,horz) element configure line1 -hide yes
++	    }
+ 	}
+ 
+ 	if {$view(graph,vert)} {
+-	    $which get vertical cut graphVertX graphVertY $x $y $sys
+-	    $ds9(graph,vert) element configure line1 -hide no
++	    if {![catch {$which get vertical cut graphVertX graphVertY $x $y $sys}]} {
++		$ds9(graph,vert) element configure line1 -hide no
++	    } else {
++		$ds9(graph,vert) element configure line1 -hide yes
++	    }
+ 	}
+     }
+ }
diff --git a/debian/patches/series b/debian/patches/series
index a4387a8..bd0c665 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ saotk_add_ksearch.patch
 saotk_add_psscale.patch
 saotk_avoid_compile_warnings.patch
 saotk_use_system_libs.patch
+Fix-problem-with-graphs-and-image-zoomed-out.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/saods9.git



More information about the Debian-astro-commits mailing list