From dcec97639f879d0b5854ec6f9f6ca9a6a9046962 Mon Sep 17 00:00:00 2001
From: stefan <stefan@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Tue, 11 May 2010 09:00:33 +0000
Subject: [PATCH] Fixed AlignmentHandle (replace region)

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

diff --git a/modules/seq/base/src/alignment_handle.cc b/modules/seq/base/src/alignment_handle.cc
index 62514274c..39db09fa5 100644
--- a/modules/seq/base/src/alignment_handle.cc
+++ b/modules/seq/base/src/alignment_handle.cc
@@ -174,7 +174,7 @@ void AlignmentHandle::Replace(const AlignedRegion& aln_r, int start, int end){
                          "to share the same number of sequences");
   }
   int aln_rStart=aln_r.GetStart();
-  int aln_rEnd=aln_r.GetEnd();
+  int aln_rEnd=aln_r.GetEnd()-1;
   AlignmentHandle aln=aln_r.GetAlignmentHandle();
   //iterate over sequences and replace part of sequences with the substrings
   //from aligned region
-- 
GitLab