Permalink
Browse files

commit, compose 설정이 잘못되었을 경우 무시

issue #119
  • Loading branch information...
1 parent 38015c1 commit 49bfe3066aabd884dcd95cc7ec860b24411bc83c @youknowone youknowone committed Oct 22, 2014
Showing with 7 additions and 6 deletions.
  1. +7 −0 CommonInputMethod/CIMConfiguration.m
  2. +0 −6 OSX/GureumPreferencesWindowController.m
@@ -150,6 +150,13 @@ - (void)loadAllConfigurations {
*item.pConfiguration = object != nil ? [object boolValue] : item.defaultValue;
self->originConfigurations[item.name] = @(*item.pConfiguration);
}
+
+ if (!(0 <= self->hangulCombinationModeComposing && self->hangulCombinationModeComposing < HangulCharacterCombinationModeCount)) {
+ self->hangulCombinationModeComposing = 0;
+ }
+ if (!(0 <= self->hangulCombinationModeCommiting && self->hangulCombinationModeCommiting < HangulCharacterCombinationModeCount)) {
+ self->hangulCombinationModeCommiting = 0;
+ }
}
- (void)saveAllConfigurations {
@@ -175,15 +175,9 @@ - (void)loadFromConfiguration {
// hangul
[self->optionKeyBehaviorComboBox selectItemAtIndex:configuration->optionKeyBehavior];
- if (!(0 <= configuration->hangulCombinationModeComposing && configuration->hangulCombinationModeComposing < HangulCharacterCombinationModeCount)) {
- configuration->hangulCombinationModeComposing = 0;
- }
self->showsInputForHanjaCandidatesCheckbox.integerValue = configuration->showsInputForHanjaCandidates;
self->hangulCombinationModeComposingComboBox.stringValue = GureumPreferencesHangulSyllablePresentations[configuration->hangulCombinationModeComposing];
- if (!(0 <= configuration->hangulCombinationModeCommiting && configuration->hangulCombinationModeCommiting < HangulCharacterCombinationModeCount)) {
- configuration->hangulCombinationModeCommiting = 0;
- }
self->hangulCombinationModeCommitingComboBox.stringValue = GureumPreferencesHangulSyllablePresentations[configuration->hangulCombinationModeCommiting];
}

0 comments on commit 49bfe30

Please sign in to comment.