From d2b8c3fd7c808d6690d45e58b8924b0b9dbfa16f Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Wed, 6 Apr 2011 18:01:53 +0100 Subject: [PATCH] fixing print --- .../java/com/wisemapping/controller/ExportController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/controller/ExportController.java b/wise-webapp/src/main/java/com/wisemapping/controller/ExportController.java index 2394409a..802b6cc0 100644 --- a/wise-webapp/src/main/java/com/wisemapping/controller/ExportController.java +++ b/wise-webapp/src/main/java/com/wisemapping/controller/ExportController.java @@ -135,8 +135,12 @@ public class ExportController extends BaseMultiActionController { int mindmapId = Integer.parseInt(mapIdStr); final MindmapService service = getMindmapService(); final MindMap mindMap = service.getMindmapById(mindmapId); + final String mapSvg = request.getParameter(MAP_SVG_PARAMETER); - return new ModelAndView("mindmapPrint", "mindmap", mindMap); + + ModelAndView view = new ModelAndView("mindmapPrint", "mindmap", mindMap); + view.addObject(MAP_SVG_PARAMETER, mapSvg); + return view; }