[softwarelist] Re: Win OvPro funny

  • From: David Pilling <flist@xxxxxxxxxxxxxxxxxxx>
  • To: davidpilling@xxxxxxxxxxxxx
  • Date: Mon, 3 Mar 2008 22:08:37 +0000

In message <Nu8ZiZBOh+yHFw0x@xxxxxxxxxxxxxxxxxxx>, David Pilling <flist@xxxxxxxxxxxxxxxxxxx> writes

In message <4f79f2a760dfs@xxxxxxxxxxxxx>, Dave Symes <dfs@xxxxxxxxxxxxx> writes

In  !Draw, Draw a line:
Colour: Black. Width: 1mm. Endcap: Triangle. Width: 6. Height: 12.
Insert into an OvPro graphic frame. Diplays line and endcap correctly.

Save.
Take to PC and Win version of OvPro 2.92  29 Oct 2007

Load document into OvPro.
The line displays but the endcap arrow does not.


Interesting. Why that might happen is simple enough. On RISC OS such lines are rendered by the "Draw module" (not to be confused with the DrawFile module) which is part of RISC OS, on Windows they're rendered by my own code. Chances are I've not emulated something correctly.

I will investigate...

I know what the problem is, and I've fixed it.

In Draw files it is possible to create a line in which two (or more) points have exactly the same co-ordinates. In other words one point is redundant. The trouble was that my emulation of the Draw module depended on the difference in position of the last two points in the line to work out how to draw the arrow head.

I have been caught out with this before.

I'll put the fixed version on the web site tomorrow and tell you when it is available. In the meantime, take out the extra point.



--
David Pilling
email: david@xxxxxxxxxxxxxxxxxxx
  web: http://www.davidpilling.net
 post: David Pilling P.O. Box 22 Thornton Cleveleys Blackpool. FY5 1LR UK
  fax: +44(0)870-0520-941


To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling

Other related posts: