[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src core/SnapList.cpp core/SnapList.h ...
From: |
Nicola Doebelin |
Subject: |
[Traverso-commit] traverso/src core/SnapList.cpp core/SnapList.h ... |
Date: |
Thu, 02 Oct 2008 17:28:16 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Nicola Doebelin <n_doebelin> 08/10/02 17:28:16
Modified files:
src/core : SnapList.cpp SnapList.h
src/traverso/widgets: TransportConsoleWidget.cpp
Log message:
bug in the new skipping logic of the transport console fixed.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/SnapList.cpp?cvsroot=traverso&r1=1.31&r2=1.32
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/SnapList.h?cvsroot=traverso&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/widgets/TransportConsoleWidget.cpp?cvsroot=traverso&r1=1.12&r2=1.13
Patches:
Index: core/SnapList.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/SnapList.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- core/SnapList.cpp 1 Oct 2008 20:26:48 -0000 1.31
+++ core/SnapList.cpp 2 Oct 2008 17:28:15 -0000 1.32
@@ -55,6 +55,7 @@
{
// printf("mark_dirty()\n");
m_isDirty = true;
+ m_wasDirty = true;
}
void SnapList::update_snaplist()
@@ -376,3 +377,10 @@
return TimeRef(snapDiff);
}
+
+bool SnapList::was_dirty()
+{
+ bool ret = m_wasDirty;
+ m_wasDirty = false;
+ return ret;
+}
Index: core/SnapList.h
===================================================================
RCS file: /sources/traverso/traverso/src/core/SnapList.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- core/SnapList.h 1 Oct 2008 20:26:48 -0000 1.18
+++ core/SnapList.h 2 Oct 2008 17:28:16 -0000 1.19
@@ -45,7 +45,7 @@
void set_range(const TimeRef& start, const TimeRef& end, int
scalefactor);
void mark_dirty();
- bool is_dirty() {return m_isDirty;};
+ bool was_dirty();
private:
Sheet* m_sheet;
@@ -53,6 +53,7 @@
QList<TimeRef> m_xposLut;
QList<bool> m_xposBool;
bool m_isDirty;
+ bool m_wasDirty;
TimeRef m_rangeStart;
TimeRef m_rangeEnd;
qint64 m_scalefactor;
Index: traverso/widgets/TransportConsoleWidget.cpp
===================================================================
RCS file:
/sources/traverso/traverso/src/traverso/widgets/TransportConsoleWidget.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- traverso/widgets/TransportConsoleWidget.cpp 1 Oct 2008 20:26:48 -0000
1.12
+++ traverso/widgets/TransportConsoleWidget.cpp 2 Oct 2008 17:28:16 -0000
1.13
@@ -109,7 +109,7 @@
// even during playback.
void TransportConsoleWidget::to_left()
{
- if (m_sheet->get_snap_list()->is_dirty()) {
+ if (m_sheet->get_snap_list()->was_dirty()) {
update_snappositions();
}
@@ -149,7 +149,7 @@
void TransportConsoleWidget::to_right()
{
- if (m_sheet->get_snap_list()->is_dirty()) {
+ if (m_sheet->get_snap_list()->was_dirty()) {
update_snappositions();
}