mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Lots of minor changes to prevent warnings. Small fixes to Path, AudioThumbnail, ValueTree, OutputStreams. Tweaks to convert Drawables to/from ValueTrees. New method to write XML to a stream.
This commit is contained in:
parent
d9dc6b1cfc
commit
80753f4c03
87 changed files with 1445 additions and 1755 deletions
|
|
@ -1563,27 +1563,27 @@ TreeViewItem* TreeViewItem::getItemOnRow (int index) throw()
|
|||
return 0;
|
||||
}
|
||||
|
||||
TreeViewItem* TreeViewItem::findItemRecursively (int y) throw()
|
||||
TreeViewItem* TreeViewItem::findItemRecursively (int targetY) throw()
|
||||
{
|
||||
if (((unsigned int) y) < (unsigned int) totalHeight)
|
||||
if (((unsigned int) targetY) < (unsigned int) totalHeight)
|
||||
{
|
||||
const int h = itemHeight;
|
||||
|
||||
if (y < h)
|
||||
if (targetY < h)
|
||||
return this;
|
||||
|
||||
if (isOpen())
|
||||
{
|
||||
y -= h;
|
||||
targetY -= h;
|
||||
|
||||
for (int i = 0; i < subItems.size(); ++i)
|
||||
{
|
||||
TreeViewItem* const ti = subItems.getUnchecked(i);
|
||||
|
||||
if (y < ti->totalHeight)
|
||||
return ti->findItemRecursively (y);
|
||||
if (targetY < ti->totalHeight)
|
||||
return ti->findItemRecursively (targetY);
|
||||
|
||||
y -= ti->totalHeight;
|
||||
targetY -= ti->totalHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue