Commits

Anonymous committed fc1d656

Use textPosition.getCharacter instead of char.

  • Participants
  • Parent commits 83f7563

Comments (0)

Files changed (1)

src/main/java/org/xmlcml/pdf2svg/PDFPage2SVGConverter.java

 	private void addContentAndAttributesToSVGText(TextPosition textPosition, SVGText svgText,
 			float width, int charCode) {
 		try {
-			svgText.setText(textContent);
+			svgText.setText(textPosition.getCharacter());
 		} catch (RuntimeException e) {
 			// drops here if cannot encode as XML character
 			annotateUnusualCharacters(textPosition, svgText);