Browse Source

Fixed a couple of warnings in last commit

tags/2021-05-28
ed 8 years ago
parent
commit
49ef5b4318
2 changed files with 4 additions and 3 deletions
  1. +3
    -3
      extras/Projucer/Source/ComponentEditor/components/jucer_ComponentTypeHandler.cpp
  2. +1
    -0
      extras/Projucer/Source/ComponentEditor/jucer_UtilityFunctions.h

+ 3
- 3
extras/Projucer/Source/ComponentEditor/components/jucer_ComponentTypeHandler.cpp View File

@@ -356,12 +356,12 @@ public:
void setPosition (const RelativePositionedRectangle& newPos)
{
auto* layout = document.getComponentLayout();
auto* l = document.getComponentLayout();
if (layout->getSelectedSet().getNumSelected() > 1)
if (l->getSelectedSet().getNumSelected() > 1)
positionOtherSelectedComponents (ComponentTypeHandler::getComponentPosition (component), newPos);
layout->setComponentPosition (component, newPos, true);
l->setComponentPosition (component, newPos, true);
}
RelativePositionedRectangle getPosition() const


+ 1
- 0
extras/Projucer/Source/ComponentEditor/jucer_UtilityFunctions.h View File

@@ -88,6 +88,7 @@ inline void drawResizableBorder (Graphics& g, int w, int h,
const bool isMouseOver,
Colour borderColour)
{
ignoreUnused (isMouseOver);
g.setColour (borderColour);
g.fillRect (0, 0, w, borderSize.getTop());


Loading…
Cancel
Save