#427 Storing custom colors in layer

master branch
color layer (1)

Strange things happen when you use "other" colors as layer attribute.
1. Create a new layer, give it a name and choose some custom color like #AA00AA.
2. Draw something in that layer just to visualize the behaviour.
3. Open the attributes of that layer again and OOPS, the color is said to be black/white even though your objects are still nicely pink.
4. Now change some other attribute, like line width, and click ok and BAM your layer is black/white again.

Apart from that there is some other error I can't always reproduce. But sometimes when returning from the color picker into the main Layer Attribute Window, the layer's name is completely erased.


  • LordOfBikes

    LordOfBikes - 2013-09-13
    • status: open --> open-accepted
  • LordOfBikes

    LordOfBikes - 2013-09-13

    There is also the problem, when you save the file with custom layer colors, close and reopen it, the customized color has changed.

  • sven-de

    sven-de - 2013-09-13

    True. Saving/Reopen was the first ocassion I noticed this as well. But after tracking the error down within an open document I forgot about my curiosity's origin.

  • Rallaz

    Rallaz - 2013-09-17

    Fixed incorrect handling of custom colors, commit c04def84e8

    Fixed read of RGB colors, commit 6e53c66f16

    Please check if these patches solve the errors and do not add any new

  • Rallaz

    Rallaz - 2013-09-17
    • status: open-accepted --> open-fixed
  • LordOfBikes

    LordOfBikes - 2013-09-17

    Save and reopen still broke custom colors, hope I fixed it with commit ee301a0, my tests was OK

  • sven-de

    sven-de - 2013-09-21

    Seems to work great.

    Thank you very much for solving this bug. Unfortunately this encouraged me to file even more Bug reports ;-)


Log in to post a comment.