Skip to content

Commit c90f470

Browse files
authored
Merge pull request #130 from rism-digital/develop-facsimile-neume-line
Update: Develop facsimile neume line
2 parents ebe94a8 + 889ef0a commit c90f470

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

src/measure.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,6 @@ void Measure::AddChildBack(Object *child)
213213

214214
int Measure::GetDrawingX() const
215215
{
216-
/*
217-
if (!this->IsMeasuredMusic()) {
218-
const System *system = vrv_cast<const System *>(this->GetFirstAncestor(SYSTEM));
219-
assert(system);
220-
if (system->m_drawingFacsY != VRV_UNSET) {
221-
return (system->m_systemLeftMar);
222-
}
223-
}
224-
*/
225-
226216
if (m_drawingFacsX1 != VRV_UNSET) return m_drawingFacsX1;
227217

228218
if (m_cachedDrawingX != VRV_UNSET) return m_cachedDrawingX;
@@ -355,19 +345,6 @@ int Measure::GetRightBarLineRight() const
355345

356346
int Measure::GetWidth() const
357347
{
358-
/*
359-
if (!this->IsMeasuredMusic()) {
360-
const System *system = vrv_cast<const System *>(this->GetFirstAncestor(SYSTEM));
361-
assert(system);
362-
if (system->m_drawingFacsY != VRV_UNSET) {
363-
const Page *page = vrv_cast<const Page *>(system->GetFirstAncestor(PAGE));
364-
assert(page);
365-
// xAbs2 = page->m_pageWidth - system->m_systemRightMar;
366-
return page->m_pageWidth - system->m_systemLeftMar - system->m_systemRightMar;
367-
}
368-
}
369-
*/
370-
371348
if (m_drawingFacsX2 != VRV_UNSET) return (m_drawingFacsX2 - m_drawingFacsX1);
372349

373350
assert(m_measureAligner.GetRightAlignment());

src/view_page.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ void View::DrawStaffLines(DeviceContext *dc, Staff *staff, Measure *measure, Sys
12991299
y2 = y1;
13001300
}
13011301
else {
1302-
y2 = y1 - staff->GetWidth() * tan(staff->GetDrawingRotation() * M_PI / 180.0);
1302+
y2 = y1 - measure->GetWidth() * tan(staff->GetDrawingRotation() * M_PI / 180.0);
13031303
}
13041304
}
13051305

0 commit comments

Comments
 (0)