Skip to content

Commit

Permalink
Merge pull request #1421 from gritGmbH/bugfix/last-font-symbol-unreac…
Browse files Browse the repository at this point in the history
…hable

Make last glyph of font reachable for point rendering
  • Loading branch information
copierrj authored Dec 14, 2022
2 parents f98c91f + 17a9817 commit a62d0fd
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@
</Graphic>
</PointSymbolizer>
</Rule>
<!-- DISABLED FONT INDEX ISSUE -->
<!--
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
Expand All @@ -95,7 +93,6 @@
</Graphic>
</PointSymbolizer>
</Rule>
-->
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@
</Stroke>
</LineSymbolizer>
</Rule>
<!-- DISABLED FONT INDEX ISSUE -->
<!--
<Rule>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
Expand Down Expand Up @@ -167,5 +165,4 @@
</Stroke>
</LineSymbolizer>
</Rule>
-->
</FeatureTypeStyle>
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ private Pair<Mark, Continuation<Mark>> parseMark( XMLStreamReader in )
break sym;
}

if ( font != null && base.markIndex >= font.getNumGlyphs() - 1 ) {
if ( font != null && base.markIndex >= font.getNumGlyphs() ) {
LOG.warn( "The font only contains {} glyphs, but the index given was {}.",
font.getNumGlyphs(), base.markIndex );
break sym;
Expand Down

0 comments on commit a62d0fd

Please sign in to comment.