Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
25e8d3f786
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      extras/the jucer/src/utility/jucer_UtilityFunctions.cpp

+ 4
- 2
extras/the jucer/src/utility/jucer_UtilityFunctions.cpp View File

@@ -356,12 +356,14 @@ void positionToCode (const RelativePositionedRectangle& position,
positionToCode (ComponentTypeHandler::getComponentPosition (relCompY), layout, yrx, yry, yrw, yrh);
String wrx, wry, wrw, wrh;
Component* const relCompW = layout != 0 ? layout->findComponentWithId (position.relativeToW) : 0;
Component* const relCompW = (layout != 0 && position.rect.getWidthMode() != PositionedRectangle::absoluteSize)
? layout->findComponentWithId (position.relativeToW) : 0;
if (relCompW != 0)
positionToCode (ComponentTypeHandler::getComponentPosition (relCompW), layout, wrx, wry, wrw, wrh);
String hrx, hry, hrw, hrh;
Component* const relCompH = layout != 0 ? layout->findComponentWithId (position.relativeToH) : 0;
Component* const relCompH = (layout != 0 && position.rect.getHeightMode() != PositionedRectangle::absoluteSize)
? layout->findComponentWithId (position.relativeToH) : 0;
if (relCompH != 0)
positionToCode (ComponentTypeHandler::getComponentPosition (relCompH), layout, hrx, hry, hrw, hrh);


Loading…
Cancel
Save