[PB5.71b1] Structure Viewers "insert" -> wrong output

Post bugs related to the IDE here
User avatar
Regenduft
Enthusiast
Enthusiast
Posts: 121
Joined: Mon Mar 02, 2009 9:20 pm
Location: Germany

[PB5.71b1] Structure Viewers "insert" -> wrong output

Post by Regenduft »

When using the "insert" feature of the IDEs' Structure Viewer, then "StuctureUnion" and "EndStuctureUnion" gets (kind of...) misinterpreted as a structure field, but gets inserted as a "nameless" field.

Although this is a very clear description (feel the sarcasm :wink:), here is how to reprocude it step by step:
  1. in the IDE click "Tools > Structure Viewer"
  2. in the Structure Viewer double-click "BITMAPINFO"
  3. now click "insert"
  4. then click "OK"
  5. scratch your head while inspecting the inserted code:

    Code: Select all

    var.BITMAPINFO
    var\bmiHeader         = 
    var\                  = 
    var\bmiColors[0]      = 
    var\dummybmiColors[0] = 
    var\                  = 
By the way, the Structure looks like this:

Code: Select all

Structure BITMAPINFO
  bmiHeader.BITMAPINFOHEADER
  StructureUnion
  bmiColors.RGBQUAD[0]
  dummybmiColors.RGBQUAD[1]
  EndStructureUnion
EndStructure