Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(103)

Unified Diff: lily/spacing-interface.cc

Issue 344010043: Issue 5336: Remove downcasting methods from Grob_array and Grob_info (Closed)
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/separating-line-group-engraver.cc ('k') | lily/spanner-break-forbid-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/spacing-interface.cc
diff --git a/lily/spacing-interface.cc b/lily/spacing-interface.cc
index 030d02e7272ca63b42df028cad1b85d59d22e9c3..b4e4b8f27f0e71037ad3bb150f35212bddaa9ff8 100644
--- a/lily/spacing-interface.cc
+++ b/lily/spacing-interface.cc
@@ -113,7 +113,7 @@ Spacing_interface::right_column (Grob *me)
int min_rank = INT_MAX;
for (vsize i = 0; a && i < a->size (); i++)
{
- Item *ri = a->item (i);
+ Item *ri = dynamic_cast<Item *> (a->grob (i));
Item *col = ri->get_column ();
int rank = Paper_column::get_rank (col);
« no previous file with comments | « lily/separating-line-group-engraver.cc ('k') | lily/spanner-break-forbid-engraver.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b