Skip to content

Commit 2b955e5

Browse files
committed
ugly fix
1 parent ed6852f commit 2b955e5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/folia_subclasses.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,11 @@ namespace folia {
14581458
if ( !AbstractElement::addable( parent ) ){
14591459
return false;
14601460
}
1461+
if ( parent->isSubClass<AbstractSpanRole>() ){
1462+
// we should check the textclass of the layer above this.
1463+
// but due to recusion, it is not connected to that layer yet!
1464+
return true;
1465+
}
14611466
if ( !_tval.empty() ){
14621467
string watt = _ref->str(parent->textclass());
14631468
if ( watt.empty() ){

0 commit comments

Comments
 (0)