diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:29 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:29 +0200 |
commit | b8f13e45be884dc12884ebe8f3dcd9eecb23a106 (patch) | |
tree | 22a6d8b96815d626061ff3e2d432c13078fca5c4 /ui/grid_view.h | |
parent | 5.4 (diff) | |
download | FreeFileSync-b8f13e45be884dc12884ebe8f3dcd9eecb23a106.tar.gz FreeFileSync-b8f13e45be884dc12884ebe8f3dcd9eecb23a106.tar.bz2 FreeFileSync-b8f13e45be884dc12884ebe8f3dcd9eecb23a106.zip |
5.5
Diffstat (limited to 'ui/grid_view.h')
-rw-r--r-- | ui/grid_view.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ui/grid_view.h b/ui/grid_view.h index c830224b..5fc80338 100644 --- a/ui/grid_view.h +++ b/ui/grid_view.h @@ -181,16 +181,12 @@ private: - - - -//############################################################################ -//inline implementation +//##################### implementation ######################################### inline const FileSystemObject* GridView::getObject(size_t row) const { - return row < rowsOnView() ? + return row < viewRef.size() ? FileSystemObject::retrieve(viewRef[row]) : nullptr; } |