summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-09-15 23:30:42 +0300
committerSarper Akdemir <sarper.akdemir.extern@allotropia.de>2023-09-18 19:56:50 +0200
commit971425f9b7613183a565e9b4ec5792b3f67bb133 (patch)
treef3131c7acc9d6bed1fa26e8aa0f6928ca741fd16 /sfx2
parentf28b043b4eb40e90b330721fc43d19ae6c06951e (diff)
fix emscripten build
Change-Id: I15df992e410f741a22d1f140b85e57a97195a5f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157020 Tested-by: Jenkins Reviewed-by: Sarper Akdemir <sarper.akdemir.extern@allotropia.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/thumbnailview.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index 65bc3d878df0..2d4e8bb57611 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <config_wasm_strip.h>
+
#include <sfx2/thumbnailview.hxx>
#include <sfx2/thumbnailviewitem.hxx>
@@ -40,7 +42,9 @@
#include <com/sun/star/embed/XStorage.hpp>
#include <memory>
+#if !ENABLE_WASM_STRIP_RECENT
#include "recentdocsviewitem.hxx"
+#endif
using namespace basegfx;
using namespace basegfx::utils;
@@ -416,6 +420,7 @@ void ThumbnailView::CalculateItemPositions(bool bScrollBarUsed)
{
ThumbnailViewItem *const pItem = mFilteredItemList[i];
+#if !ENABLE_WASM_STRIP_RECENT
// tdf#38742 - show pinned items in a separate line
if (auto const pRecentDocsItem = dynamic_cast<RecentDocsViewItem*>(pItem))
{
@@ -431,6 +436,7 @@ void ThumbnailView::CalculateItemPositions(bool bScrollBarUsed)
nCurCount = 0;
}
}
+#endif
if ((nCurCount >= nFirstItem) && (nCurCount < nLastItem))
{