mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
Drawable fixes.
This commit is contained in:
parent
e0ca6d6ca4
commit
e5c4ecc670
8 changed files with 46 additions and 42 deletions
|
|
@ -74,7 +74,7 @@ const Path& DrawablePath::getStrokePath() const
|
|||
return strokePath;
|
||||
}
|
||||
|
||||
bool DrawablePath::rebuildPath (Path& path) const
|
||||
bool DrawablePath::rebuildPath (Path&) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -142,22 +142,22 @@ const RelativePointPath* DrawablePath::getRelativePath() const
|
|||
return current != 0 ? &(current->path) : 0;
|
||||
}
|
||||
|
||||
void DrawablePath::setPath (const RelativePointPath& source)
|
||||
void DrawablePath::setPath (const RelativePointPath& newRelativePath)
|
||||
{
|
||||
if (source.containsAnyDynamicPoints())
|
||||
if (newRelativePath.containsAnyDynamicPoints())
|
||||
{
|
||||
const RelativePointPath* current = getRelativePath();
|
||||
|
||||
if (current == 0 || source != *current)
|
||||
if (current == 0 || newRelativePath != *current)
|
||||
{
|
||||
RelativePositioner* const p = new RelativePositioner (*this, source);
|
||||
RelativePositioner* const p = new RelativePositioner (*this, newRelativePath);
|
||||
setPositioner (p);
|
||||
p->apply();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
applyRelativePath (source);
|
||||
applyRelativePath (newRelativePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue