Book a Demo

Author Topic: fixedAspectRatio="false" - Spurious Error Message  (Read 4090 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
fixedAspectRatio="false" - Spurious Error Message
« on: September 11, 2009, 04:43:10 pm »
Setting:
fixedAspectRatio="false";
 in a shape script generates the  spurious error message:

Error: Invalid value for orientation. Acceptable values are: "nw", "n", "ne", "e", "se", "s", "sw", "w", "nw",  and "center"'false

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: fixedAspectRatio="false" - Spurious Error Mess
« Reply #1 on: September 11, 2009, 09:00:52 pm »
I don't agree.

The message is far from spurious, there's a real error around here somewhere.

As to the text displayed, this might be long-awaited real proof [I couldn't resist] that not everyone prefers Clayton's.
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: fixedAspectRatio="false" - Spurious Error Mess
« Reply #2 on: September 11, 2009, 11:07:21 pm »
Quote
I don't agree.

The message is far from spurious, there's a real error around here somewhere.
Well, if I set the value to true, the error goes away.  And even with the error message displayed the shape script works EXACTLY as I expected.

Since there's NO indication of which line is being complained about and if you remove the line completely, the error goes away.  I have no evidence that the message isn't spurious.

I discovered the "spuriousness" of the error when I had a working shapescript and accidentally pasted the line (having thought I copied some other code - you know how sometimes a "Copy" doesn't "take").

Anyway, I'll wait Sparx's response.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: fixedAspectRatio="false" - Spurious
« Reply #3 on: September 14, 2009, 03:52:09 pm »
Sparx have acknowledged the spurious message, but they point out that the documentation:

fixedAspectRatio

Set to true to fix the aspect ratio. Do not use if you do not want to fix the aspect ratio.


means that:  fixedAspectRatio="false" is actually invalid syntax.  The inverse of  fixedAspectRatio="true" is the absence of the  fixedAspectRatio entry.

My reply is that this form of grammar is confusing.  By all means let the absence of  fixedAspectRatio imply  fixedAspectRatio="false".  But that should NOT make  fixedAspectRatio="false" invalid syntax.

Thoughts?
Paolo
« Last Edit: September 15, 2009, 11:27:53 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: fixedAspectRatio="false" - Spurious Error Mess
« Reply #4 on: September 15, 2009, 09:37:34 am »
Unary? Oolean? Single-valued logic?

Or perhaps an unalterable truth. The possibilities sound exciting.
No, you can't have it!