Project

General

Profile

Bug #5079

Incorrect widget name in error message

Added by Vladimir Tsichevski over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:

History

#1 Updated by Vladimir Tsichevski over 3 years ago

The test code:

define frame fr
   with centered size 80 by 20 side-labels.

define variable fg as handle.
assign fg = FRAME fr:handle:first-child.

fg:FONT = fg:FONT.

enable all with frame fr.
wait-for go of frame fr.

The error messages do differ.

In OE:

FONT is not a queryable attribute for FIELD-GROUP widget. (4052)

In FWD:

FONT is not a queryable attribute for FIELD-GROUP ?. (4052)

The difference is probably caused by how the widget name is formed in GenericWidget:

   protected String widgetName()
   {
      character name = name();
      return dynamic && name.isUnknown() ? "widget" : name.toStringMessage();
   }

Probably, the correct code may look like this?

   protected String widgetName()
   {
      character name = name();
      return dynamic || name.isUnknown() ? "widget" : name.toStringMessage();
   }

Also available in: Atom PDF