[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/commands Crop.cpp
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/commands Crop.cpp |
Date: |
Wed, 11 Mar 2009 20:31:01 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 09/03/11 20:31:01
Modified files:
src/commands : Crop.cpp
Log message:
* Make it so that a selection never can be adjusted to be zero in
width, it remains always at least one pixel in width
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/commands/Crop.cpp?cvsroot=traverso&r1=1.3&r2=1.4
Patches:
Index: Crop.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/commands/Crop.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Crop.cpp 11 Mar 2009 20:21:21 -0000 1.3
+++ Crop.cpp 11 Mar 2009 20:31:01 -0000 1.4
@@ -178,7 +178,7 @@
x1 -= 1;
if (x1 < 0) x1 = 0;
} else {
- if (x2 > x1) {
+ if (x2 > (x1 + 1)) {
x2 -= 1;
}
}
@@ -195,7 +195,7 @@
int x = (int) m_selection->mapFromScene(cpointer().scene_x(),
cpointer().y()).x();
if (x < (m_selection->boundingRect().width() / 2)) {
- if (x2 > x1) {
+ if (x2 > (x1 + 1)) {
x1 += 1;
}
} else {