diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2013-03-30 17:26:03 -0430 |
---|---|---|
committer | Rafael Dominguez <venccsralph@gmail.com> | 2013-04-05 21:23:10 -0430 |
commit | 86ba7698e6a117967daec23f9580469943f8afda (patch) | |
tree | 101672231940893abf4c3545e50620ca83a33555 /sfx2/source/control/templateabstractview.cxx | |
parent | 4e4119b2d338b607adff338be01d33d62f3e45f4 (diff) |
Avoid generating filter list several times.
- Only generate the list after applying a new filter function.
- Append item directly to the filtered list if its allowed when appending
a new item to the thumbnailview.
Change-Id: I804533e2a1751abb0cbc3082093aef2cb9093fb0
Diffstat (limited to 'sfx2/source/control/templateabstractview.cxx')
-rw-r--r-- | sfx2/source/control/templateabstractview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/templateabstractview.cxx b/sfx2/source/control/templateabstractview.cxx index aae6328c1969..69be29dbc251 100644 --- a/sfx2/source/control/templateabstractview.cxx +++ b/sfx2/source/control/templateabstractview.cxx @@ -162,7 +162,7 @@ void TemplateAbstractView::insertItem(const TemplateItemProperties &rTemplate) pChild->setSelectClickHdl(LINK(this,ThumbnailView,OnItemSelected)); - mItemList.push_back(pChild); + AppendItem(pChild); CalculateItemPositions(); Invalidate(); |