diff --git a/IB-Tracker/src/Config/Config.h b/IB-Tracker/src/Config/Config.h index 2086494..8f58446 100644 --- a/IB-Tracker/src/Config/Config.h +++ b/IB-Tracker/src/Config/Config.h @@ -26,7 +26,7 @@ SOFTWARE. #pragma once -constexpr std::wstring version = L"2.4.0"; +constexpr std::wstring version = L"2.4.1"; bool SaveConfig(); bool LoadConfig(); diff --git a/IB-Tracker/src/TradeDialog/TradeDialogSave.cpp b/IB-Tracker/src/TradeDialog/TradeDialogSave.cpp index c85dc93..1794929 100644 --- a/IB-Tracker/src/TradeDialog/TradeDialogSave.cpp +++ b/IB-Tracker/src/TradeDialog/TradeDialogSave.cpp @@ -491,7 +491,7 @@ void TradeDialog_CreateOptionsTradeData(HWND hwnd) leg->PutCall = guiData.legsRoll.at(row).PutCall; leg->action = guiData.legsRoll.at(row).action; leg->trans = trans; - int intQuantity = guiData.legsRoll.at(row).origQuantity * trans->quantity; + int intQuantity = guiData.legsRoll.at(row).origQuantity; if (intQuantity == 0) continue; std::wstring wszExpiryDate = AfxRemoveDateHyphens(leg->expiryDate);