From 9b623ea3943165fe7efb5e47a0b5b9452c1599e6 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Wed, 9 May 2018 00:09:55 +0200 Subject: 9.8 --- wx+/grid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wx+/grid.cpp') diff --git a/wx+/grid.cpp b/wx+/grid.cpp index b301bf6b..64f7f4a6 100755 --- a/wx+/grid.cpp +++ b/wx+/grid.cpp @@ -462,8 +462,8 @@ public: const int yFrom = refParent().CalcUnscrolledPosition(clientRect.GetTopLeft ()).y; const int yTo = refParent().CalcUnscrolledPosition(clientRect.GetBottomRight()).y; - return std::make_pair(std::max(yFrom / rowHeight_, 0), - std::min((yTo / rowHeight_) + 1, refParent().getRowCount())); + return { std::max(yFrom / rowHeight_, 0), + std::min((yTo / rowHeight_) + 1, refParent().getRowCount()) }; } private: @@ -1269,7 +1269,7 @@ private: ColLabelWin& colLabelWin_; std::unique_ptr activeSelection_; //bound while user is selecting with mouse - MouseHighlight highlight_; //current mouse highlight_ (superseeded by activeSelection_ if available) + MouseHighlight highlight_; //current mouse highlight_ (superseded by activeSelection_ if available) ptrdiff_t cursorRow_ = 0; size_t selectionAnchor_ = 0; -- cgit