Merge pull request #116 from kbugstar/patch-2

Update IndicatorImp.cpp
This commit is contained in:
fasiondog 2023-09-26 17:40:29 +08:00 committed by GitHub
commit 6a61e2325a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ void IndicatorImp::initContext() {
void IndicatorImp::setContext(const Stock &stock, const KQuery &query) {
KData kdata = getContext();
if (kdata.getStock() == stock || kdata.getQuery() == query) {
if (kdata.getStock() == stock && kdata.getQuery() == query) {
if (m_need_calculate) {
calculate();
}