[chronojump] Fixed DeletingLastTc on ending an Rj jump (fixes crash on unlimited with 1 jump)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed DeletingLastTc on ending an Rj jump (fixes crash on unlimited with 1 jump)
- Date: Wed, 2 Jun 2021 15:36:18 +0000 (UTC)
commit 85cb0465d17a871678522d043e62efab3bf8c291
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jun 2 17:35:43 2021 +0200
Fixed DeletingLastTc on ending an Rj jump (fixes crash on unlimited with 1 jump)
src/util.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/util.cs b/src/util.cs
index 5ca959e98..a3426b280 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -591,7 +591,7 @@ public class Util
if(tcFull.Length > tvFull.Length) {
int lastEqualPos = tcString.LastIndexOf('=');
- return tcString.Substring(0, lastEqualPos -1);
+ return tcString.Substring(0, lastEqualPos);
} else {
return tcString;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]