This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 3ad01bce4c1a647c80a5b35b63ebce941bf1b4cf Author: Martin Desruisseaux <[email protected]> AuthorDate: Wed May 18 18:41:10 2022 +0200 Fix the number of fraction digits shown in the table of values. --- .../java/org/apache/sis/image/BandedSampleConverter.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/sis-feature/src/main/java/org/apache/sis/image/BandedSampleConverter.java b/core/sis-feature/src/main/java/org/apache/sis/image/BandedSampleConverter.java index 24ad4c6c3c..e6b15c5b43 100644 --- a/core/sis-feature/src/main/java/org/apache/sis/image/BandedSampleConverter.java +++ b/core/sis-feature/src/main/java/org/apache/sis/image/BandedSampleConverter.java @@ -227,14 +227,12 @@ class BandedSampleConverter extends ComputedImage { */ @Override public Object getProperty(final String key) { - if (SourceAlignedImage.POSITIONAL_PROPERTIES.contains(key)) { - if (SAMPLE_RESOLUTIONS_KEY.equals(key)) { - if (sampleResolutions != null) { - return sampleResolutions.clone(); - } - } else { - return getSource().getProperty(key); + if (SAMPLE_RESOLUTIONS_KEY.equals(key)) { + if (sampleResolutions != null) { + return sampleResolutions.clone(); } + } else if (SourceAlignedImage.POSITIONAL_PROPERTIES.contains(key)) { + return getSource().getProperty(key); } return super.getProperty(key); }
