I ran into an odd little problem with the notation editor a while ago. Under
certain circumstances the first measure will grow longer and longer.
Replicating the problem:
1. Select all segments of a multi-staff piece before opening it in the notation
editor, so that at least two staves will be visible. The first measure of
one of the staves must contain at least one note, and the time signature
must also be visible.
2. Select any note in the first measure and do just about anything to it.
(up-arrow, down-arrow, up-arrow, down-arrow, etc.)
3. The first measure will grow longer each time the note is tampered with.
4. Closing and reopening the notation editor restores the measure to its proper
length.
The issue lies in src/gui/editors/notation/NotationHLayout.cpp, where line 845
should contain "=" rather than "+=".
Tim Munro
--- src/gui/editors/notation/NotationHLayout.cpp 2013-01-07
13:43:40.000000000 -0800
+++ src/gui/editors/notation/NotationHLayout.cpp 2013-03-20
08:48:25.617259085 -0700
@@ -842,7 +842,7 @@
// If only one bar keep its time signature and update fixedWidth
if (i->second.size() == 1) {
BarData * dataPtr = *(i->second.begin());
- dataPtr->sizeData.fixedWidth +=
dataPtr->sizeData.timeSigFixedWidth;
+ dataPtr->sizeData.fixedWidth = dataPtr->sizeData.timeSigFixedWidth;
continue;
}
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel