Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

There is a bug about AIDocumentRulerUnitValue in AI CS2 SDK

New Here ,
Feb 19, 2009 Feb 19, 2009
There is a bug about AIDocumentRulerUnitValue in AI CS2 SDK, AI CS2 SDK give its value is:
enum AIDocumentRulerUnitValue {
kUnknownUnits = 0,
kInchesUnits,
kCentimetersUnits,
kPointsUnits,
kPicasUnits,
kMillimetersUnits,
kPixelsUnits,
kQUnits
}
but its true value must be:

enum AIDocumentRulerUnitValue {
kInchesUnits = 0,
kMillimetersUnits,
kPointsUnits,
kPicasUnits,
kCentimetersUnits,
kQUnits,
kPixelsUnits,
kUnknownUnits

}
TOPICS
SDK
541
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
New Here ,
Feb 20, 2009 Feb 20, 2009
No, I think first enum is OK. They are values returned by sAIDocument->GetDocumentRulerUnits function.

Second enum corresponds to values in AIPrefs file, under "rulerType" key. They don't match, I know. But who said Adobe must be logical?

Chunky
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 20, 2009 Feb 20, 2009
LATEST
Yes, they definitely work because we've been using the document unit enum for a while now and believe me, we'd have noticed if the enum for pixels was wrong :)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines