Issue #1380 fix kml handling of uninitialized coor bars.
Former-commit-id:fc3a59d796
[formerly5040239f69
] [formerly0418beb8c7
] [formerlyfc3a59d796
[formerly5040239f69
] [formerly0418beb8c7
] [formerly1828fcbccf
[formerly0418beb8c7
[formerly 31189d6a6ca7a97220f2713f067c27e9bb415fd1]]]] Former-commit-id:1828fcbccf
Former-commit-id:242ea756de
[formerly1c508fc105
] [formerly 4af344ddcea63070ee5636c11476c5bc7bc9cb20 [formerlyba7f4d2e71
]] Former-commit-id: 3f975eb81366fda48a50c613ef2d948aba3184f9 [formerlyc94c7901af
] Former-commit-id:04d22c0f2b
This commit is contained in:
parent
0ffbb6aaa7
commit
6e962adfef
1 changed files with 5 additions and 1 deletions
|
@ -304,7 +304,6 @@ public class KmlExportJob extends Job {
|
|||
lastIndex = Math.min(lastIndex, descriptor.getNumberOfFrames());
|
||||
rscmonitor.beginTask("Saving " + rsc.getName(), lastIndex
|
||||
- startIndex);
|
||||
addColorMap(resourceOut, display.getBackgroundColor(), rsc);
|
||||
DataTime[] times = descriptor.getFramesInfo().getTimeMap()
|
||||
.get(rsc);
|
||||
if ((times == null || times.length == 0)
|
||||
|
@ -352,6 +351,7 @@ public class KmlExportJob extends Job {
|
|||
return;
|
||||
}
|
||||
}
|
||||
addColorMap(resourceOut, display.getBackgroundColor(), rsc);
|
||||
}
|
||||
rp.getProperties().setVisible(false);
|
||||
if (options.isPreserveVisibility() && !visibility.get(c)) {
|
||||
|
@ -550,6 +550,10 @@ public class KmlExportJob extends Job {
|
|||
xAnchor = Math.min(1, cap.getResourceIndex());
|
||||
}
|
||||
IColorMap colorMap = parameters.getColorMap();
|
||||
if (colorMap == null) {
|
||||
// the resource isn't actually using it's color bar.
|
||||
return;
|
||||
}
|
||||
BufferedImage bi = new BufferedImage(colorMap.getSize() * 2, 25,
|
||||
BufferedImage.TYPE_INT_RGB);
|
||||
Graphics graphics = bi.getGraphics();
|
||||
|
|
Loading…
Add table
Reference in a new issue