Revision 40337
branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/view/legend/gui/LegendManager.java | ||
---|---|---|
672 | 672 |
while (parent != null |
673 | 673 |
&& !alreadyAdded |
674 | 674 |
.contains(pages.get(parent))) { |
675 |
legend = (ILegendPanel) pages.get(parent); |
|
676 |
doInsertNode(model, legend); |
|
677 |
alreadyAdded.add(legend); |
|
678 |
parent = legend.getParentClass(); |
|
675 |
|
|
676 |
ILegendPanel par_legend = |
|
677 |
(ILegendPanel) pages.get(parent); |
|
678 |
|
|
679 |
if (par_legend != null) { |
|
680 |
doInsertNode(model, par_legend); |
|
681 |
alreadyAdded.add(par_legend); |
|
682 |
parent = par_legend.getParentClass(); |
|
683 |
} else { |
|
684 |
parent = null; |
|
685 |
} |
|
679 | 686 |
} |
680 | 687 |
|
681 | 688 |
doInsertNode(model, legend); |
Also available in: Unified diff