summaryrefslogtreecommitdiff
path: root/wx+/grid.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:56:27 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:56:27 +0200
commit19eb73ff543c81c6886725a20dea0060cb0c0c26 (patch)
tree91442c0fdb9cac90c75dfb6bb84def9df297cd77 /wx+/grid.h
parent7.2 (diff)
downloadFreeFileSync-19eb73ff543c81c6886725a20dea0060cb0c0c26.tar.gz
FreeFileSync-19eb73ff543c81c6886725a20dea0060cb0c0c26.tar.bz2
FreeFileSync-19eb73ff543c81c6886725a20dea0060cb0c0c26.zip
7.3
Diffstat (limited to 'wx+/grid.h')
-rw-r--r--wx+/grid.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/wx+/grid.h b/wx+/grid.h
index 76ee383a..8523b698 100644
--- a/wx+/grid.h
+++ b/wx+/grid.h
@@ -192,7 +192,8 @@ public:
void scrollTo(size_t row);
void Refresh(bool eraseBackground = true, const wxRect* rect = nullptr) override;
- bool Enable( bool enable = true) override { Refresh(); return wxScrolledWindow::Enable(enable); }
+ bool Enable(bool enable = true) override;
+
//############################################################################################################
private:
@@ -234,11 +235,11 @@ private:
std::vector<size_t> get() const
{
- std::vector<size_t> selection;
+ std::vector<size_t> result;
for (size_t row = 0; row < rowSelectionValue.size(); ++row)
if (rowSelectionValue[row] != 0)
- selection.push_back(row);
- return selection;
+ result.push_back(row);
+ return result;
}
void selectAll() { selectRange(0, rowSelectionValue.size(), true); }
bgstack15