diff --git a/honoka/src/anthyconversion.cpp b/honoka/src/anthyconversion.cpp index 762809d..798806b 100644 --- a/honoka/src/anthyconversion.cpp +++ b/honoka/src/anthyconversion.cpp @@ -99,6 +99,7 @@ ResultList AnthyConversion::getResultList(int p,int kt){ if (p == -1) p = pos; + if (p >= convResult.size()) return ResultList(); if ((kt != 0) || (p >= convResult.size())) return ResultList(); setPos(p); return convResult[p]; diff --git a/honoka/src/convertor.cpp b/honoka/src/convertor.cpp index 25b3a74..6f11076 100644 --- a/honoka/src/convertor.cpp +++ b/honoka/src/convertor.cpp @@ -19,6 +19,14 @@ ***************************************************************************/ #include "convertor.h" + +ResultList::ResultList() +{ + pos = 0; + count = 0; + kType = 0; +} + /* �������ߡ��᥽�åɤ������� */ Convertor::Convertor(ConfigPointer cfg) : HonokaPluginBase(String("Convertor")) diff --git a/honoka/src/convertor.h b/honoka/src/convertor.h index 852d184..8611844 100644 --- a/honoka/src/convertor.h +++ b/honoka/src/convertor.h @@ -40,6 +40,7 @@ */ class ResultList{ public: + ResultList(); WideString Yomi; WideString Title; int pos; diff --git a/honoka/src/multiconvertor.cpp b/honoka/src/multiconvertor.cpp index e9e05a5..e9ce779 100644 --- a/honoka/src/multiconvertor.cpp +++ b/honoka/src/multiconvertor.cpp @@ -148,7 +148,7 @@ } bool MultiConvertor::resizeRegion(int w) { - return false; + //return false; // �ʲ������档 texts.clear(); @@ -172,7 +172,6 @@ instance->convertors[i]->setPos(p); } } - return true; } diff --git a/honoka/src/wnnconversion.cpp b/honoka/src/wnnconversion.cpp index de3674a..a55c350 100644 --- a/honoka/src/wnnconversion.cpp +++ b/honoka/src/wnnconversion.cpp @@ -384,7 +384,8 @@ if ((sType != Wnn8) && (sType != Wnn7) && (kt != DEFAULT)) return convList; if (p == -1) p = pos; - if ((p >= bunsetu) || (p < 0)) p = p % bunsetu; + //if ((p >= bunsetu) || (p < 0)) p = p % bunsetu; + if (p >= bunsetu) return convList; pos = p; jl_get_yomi(wnn,pos,pos + 1,k); wstostr((unsigned char*)buf,k);