Ticket #254: menu2.diff

File menu2.diff, 606 bytes (added by aldeck, 17 years ago)

Corrects a little mistake in menu/ColorWindow.cpp

  • src/preferences/menu/ColorWindow.cpp

     
    7171void
    7272ColorWindow::_UpdateAndPost()
    7373{
     74    fCurrentColor = fColorControl->ValueAsColor();
     75   
    7476    fDefaultButton->SetEnabled(fCurrentColor != fDefaultColor);
    7577    fRevertButton->SetEnabled(fCurrentColor != fPreviousColor);
    76    
    77     fCurrentColor = fColorControl->ValueAsColor();
    78        
     78           
    7979    menu_info info;
    8080    get_menu_info(&info);
    8181    info.background_color = fCurrentColor;