fix for F_sine segv, bunch of intl fixes
[goodguy/history.git] / cinelerra-5.1 / cinelerra / appearanceprefs.C
index 46badb85276be26b9a0c7e14bdfdcf0bc6b45558..1fc61cc04018a06cb60e4bb0194901bd573f13df 100644 (file)
 #include "theme.h"
 
 
-#define MOVE_ALL_EDITS_TITLE N_("Drag all following edits")
-#define MOVE_ONE_EDIT_TITLE N_("Drag only one edit")
-#define MOVE_NO_EDITS_TITLE N_("Drag source only")
-#define MOVE_EDITS_DISABLED_TITLE N_("No effect")
-
-
 AppearancePrefs::AppearancePrefs(MWindow *mwindow, PreferencesWindow *pwindow)
  : PreferencesDialog(mwindow, pwindow)
 {
@@ -516,7 +510,12 @@ HighlightInverseColor::HighlightInverseColor(PreferencesWindow *pwindow, int x,
 int HighlightInverseColor::handle_event()
 {
        int inverse_color = strtoul(get_text(),0,16);
-       inverse_color &= 0xffffff;
+       if( (inverse_color &= 0xffffff) == 0 ) {
+               inverse_color = 0xffffff;
+               char string[BCSTRLEN];
+               sprintf(string,"%06x", inverse_color);
+               update(string);
+       }
        pwindow->thread->preferences->highlight_inverse = inverse_color;
        return 1;
 }