Browse Source

line-height option zu table der uiml view hinzugefügt

Kolja Strohm 5 years ago
parent
commit
3398ef8a1b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      UIMLView.cpp

+ 6 - 0
UIMLView.cpp

@@ -391,6 +391,12 @@ void UIMLView::layout( XML::Element *e, int pWidth, int pHeight )
             ObjTabelle *objT = (ObjTabelle*)z;
             if( objT->getZeilenAnzahl() > 0 )
             {
+                if( e->hasAttribute( "line-height" ) )
+                {
+                    int height = e->getAttributeValue( "line-height" );
+                    for( int i = 0; i < objT->getZeilenAnzahl(); i++ )
+                        objT->setZeilenHeight( i, height );
+                }
                 for( int i = 0; i < objT->getSpaltenAnzahl(); i++ )
                 {
                     if( objT->zZeichnung( i, 0 ) )