[Capella import] file with title results in several vertical frames, 2 containing nothing but a #

• Apr 28, 2013 - 17:48
Type
Functional
Severity
S4 - Minor
Status
closed
Project

See #14438: Problems with capella files, reply #20 issue g), lasconic's SATB.cap file shows the problem


Comments

Title [Capella import] file with title results several vertical frames, 2 containing nothing but a # [Capella import] file with title results in several vertical frames, 2 containing nothing but a #

I guess this happens in capella.cpp around line 673 (line 6 below):
{syntaxhighlighter brush:c++}
case CAP_TEXT: {
extern QString rtf2html(const QString &);

TextObj* to = static_cast(o);
Text* s = new Text(score);
QString ss = rtf2html(QString(to->text));

//qDebug("string %f:%f w %d ratio %d <%s>",
// to->relPos.x(), to->relPos.y(), to->width, to->yxRatio, qPrintable(ss));
s->setHtml(ss);
MeasureBase* measure = score->measures()->first();
if (measure->type() != Element::VBOX) {
MeasureBase* mb = new VBox(score);
mb->setTick(0);
score->addMeasure(mb, measure);
}
s->setTextStyleType(TEXT_STYLE_TITLE);
measure->add(s);
}
break;
{/syntaxhighlighter}

But this is really just a guess ;-)