From fb5aa68edeaa90d3df543f125adeceb6e2f114d7 Mon Sep 17 00:00:00 2001
From: gb10 <gb10>
Date: Tue, 5 Oct 2010 16:58:55 +0000
Subject: [PATCH] Fixed a regression where grid labels weren't being displayed
 when the display is reversed

---
 bigpicture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bigpicture.c b/bigpicture.c
index 6437a72c..96dd42b0 100644
--- a/bigpicture.c
+++ b/bigpicture.c
@@ -211,7 +211,7 @@ static void drawVerticalGridLineHeaders(GtkWidget *header,
   
   /* Get the first base index and round it to a nice round number. We'll offset all of the gridlines 
    * by the distance between this and the real start coord. */
-  const int firstBaseIdx = roundToValue(dnaDispRange.min, bpProperties->roundTo);
+  const int firstBaseIdx = roundToValue(bc->displayRev ? dnaDispRange.max : dnaDispRange.min, bpProperties->roundTo);
   
   /* Calculate the top and bottom heights for the lines. */
   const gint bottomBorder = headerProperties->headerRect.y + headerProperties->headerRect.height;
-- 
GitLab