1
0
mirror of synced 2025-01-31 12:03:46 +01:00

fix: Last column of diff view displaying all zeros

Fixes #908
This commit is contained in:
WerWolv 2023-01-28 12:44:40 +01:00
parent 6799263317
commit 60a178f75e
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ namespace hex::plugin::builtin {
ImGui::EndPopup();
}
if (ImGui::BeginPopupModal("hex.builtin.popup.waiting_for_tasks.title"_lang, nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove)) {
if (ImGui::BeginPopupModal("hex.builtin.popup.waiting_for_tasks.title"_lang, nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoMove)) {
ImGui::TextUnformatted("hex.builtin.popup.waiting_for_tasks.desc"_lang);
ImGui::Separator();

View File

@ -106,8 +106,8 @@ namespace hex::plugin::builtin {
// Read one line of each provider
lineInfo[i].bytes.resize(this->m_columnCount);
provider->read(row * this->m_columnCount, lineInfo[i].bytes.data(), lineInfo[i].bytes.size());
lineInfo[i].validBytes = std::min<i64>(this->m_columnCount, provider->getSize() - row * this->m_columnCount);
provider->read(row * this->m_columnCount, lineInfo[i].bytes.data(), lineInfo[i].validBytes);
// Calculate address width
u8 addressDigits = 0;