From d403b92b24de3801aac4bae353c8a75d6dc855a1 Mon Sep 17 00:00:00 2001 From: Vojtech Krasa Date: Thu, 16 Jun 2016 03:46:45 +0200 Subject: [PATCH] #122 - fix --- src/org/plantuml/idea/rendering/PlantUmlNormalRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/plantuml/idea/rendering/PlantUmlNormalRenderer.java b/src/org/plantuml/idea/rendering/PlantUmlNormalRenderer.java index 54e8bafb..3fb6fff9 100644 --- a/src/org/plantuml/idea/rendering/PlantUmlNormalRenderer.java +++ b/src/org/plantuml/idea/rendering/PlantUmlNormalRenderer.java @@ -143,12 +143,12 @@ private void incrementalRendering(RenderRequest renderRequest, RenderCacheItem c } private void normalRendering(RenderRequest renderRequest, String[] sourceSplit, String documentSource, SourceStringReader reader, Titles titles, RenderResult renderResult, FileFormatOption formatOption, boolean containsIncludedNewPage, int i, boolean pageRequested) throws IOException { + String pageSource = pageSource(sourceSplit, containsIncludedNewPage, i); if (pageRequested) { - String pageSource = pageSource(sourceSplit, containsIncludedNewPage, i); renderResult.addRenderedImage(generateImageItem(renderRequest, documentSource, pageSource, reader, formatOption, i, i, RenderingType.NORMAL, titles.get(i))); } else { logger.debug("page ", i, " title only"); - renderResult.addUpdatedTitle(new ImageItem(renderRequest.getBaseDir(), documentSource, sourceSplit[i], i, TITLE_ONLY, null, null, RenderingType.NORMAL, titles.get(i))); + renderResult.addUpdatedTitle(new ImageItem(renderRequest.getBaseDir(), documentSource, pageSource, i, TITLE_ONLY, null, null, RenderingType.NORMAL, titles.get(i))); } }