From 13f1e855ac4a4b7c65f499d86e468a61df5e7470 Mon Sep 17 00:00:00 2001
From: stefan <stefan@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Thu, 6 May 2010 16:14:29 +0000
Subject: [PATCH] New SequenceViewer, changed backgroundcolor

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2191 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/gui/src/sequence/background_painter.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/src/sequence/background_painter.cc b/modules/gui/src/sequence/background_painter.cc
index adc5e6a73..123ceacf3 100644
--- a/modules/gui/src/sequence/background_painter.cc
+++ b/modules/gui/src/sequence/background_painter.cc
@@ -34,7 +34,7 @@ BackgroundPainter::BackgroundPainter(QObject* parent)
 
 void BackgroundPainter::Paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index){
   painter->save();
-  if ((index.column()-1)%10 > 4){
+  if (index.column()>0 && (index.column()-1)%10 < 5){
     painter->fillRect(option.rect, QColor(240,240,240));
 
   }
-- 
GitLab