fix: 条件が逆だった問題を修正

This commit is contained in:
Miwa / Ensan
2024-09-15 00:53:11 +09:00
parent b909d9783b
commit 9f8735a1ae

View File

@ -227,7 +227,7 @@ public final class DicdataStore {
/// - from: 起点
/// - toIndexRange: `from ..< (toIndexRange)`の範囲で辞書ルックアップを行う。
public func getLOUDSDataInRange(inputData: ComposingText, from fromIndex: Int, toIndexRange: Range<Int>? = nil, needTypoCorrection: Bool = true) -> [LatticeNode] {
if needTypoCorrection {
if !needTypoCorrection {
return self.getFrozenLOUDSDataInRange(inputData: inputData, from: fromIndex, toIndexRange: toIndexRange)
}
let toIndexLeft = toIndexRange?.startIndex ?? fromIndex