Placement of sprites wrong with "newpage" for vector formats

0 votes
asked Mar 9, 2015 in bug by stephan_sy (240 points)
Hi!

I encountered the following problem:

The placement of sprites is wrong when a sequence chart contains a "newpage" for vector output formats (svg, pdf, eps). On the first page the sprites are placed outside of the diagram.

Only for png output it seems to work.

Here an example:

@startuml
sprite $TimerExpired [17x21/4z] Os101qnWmCmCfXWP6HcOqG1M0OH-C0T91Cg4Yw0pq9MY6uR2XuWmu1D0rm9t9HeVoHae8cX-8yxx-0K0
sprite $TimerStarted [17x21/4z] Os101qnWmCmCfXWP6HcOqG0H0WpeV5GHY4NeV8G8mZ7eV8W80pu1B4P02IG-aWWw0rqfXc6aXmS0
sprite $TimerStopped [17x21/4z] Os101qnWmCmCfXWP6HcOqG1M0OH-C0T91Cg4Yw0pq9MY6uR2XuWmu1D0rq9jzn0N7YW00000
hide footbox
title test of plant uml
participant ALICE
participant BOB

scale 3.0

   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
   newpage Test of PlantUML, Part 2

   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
   <- ALICE : <$TimerStarted> <b>Set</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   <- ALICE : <$TimerStopped> <b>Reset</b> TEST_TIMER_1
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   BOB ->> ALICE : <b>TEST_MESSAGE_2
   ALICE ->> BOB : <b>TEST_MESSAGE_1
   ......
 @enduml

1 Answer

0 votes
answered Mar 9, 2015 by plantuml (134,650 points)
Thanks for the report!

This should be fixed in the following beta : https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Tell us if it does not work for you.
commented Mar 10, 2015 by stephan_sy (240 points)
Wow, thanks for this quick hotfix.

It works for my sprites. However, I found that the same problem exists for the "circle arrows" like "->>o", "o->" etc.

BR
Stephan
commented Mar 10, 2015 by plantuml (134,650 points)
Ok, here is a new fix:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Many thanks for your tests!
commented Mar 11, 2015 by stephan_sy (240 points)
Hi!

Looks fine. Thanks again.
BR
Stephan
...