Silence compiler warnings in the release build

- Guard the Lts/Viewer include paths with if(EXISTS): the module is
  outside the release scope, and the unguarded include_directories
  emitted -Wmissing-include-dirs for every translation unit
- nglpdfpage: initialize m_rotation before m_scaleFactor to match the
  member declaration order (-Wreorder)
This commit is contained in:
berrux-dev committed 2026-10-13 19:52:58 +02:00
1 parent 42f6e83c2c
commit a3ff160086
2 files changed
+7 -3

No files matched your search

@@ -30,8 +30,8 @@ static inline T getRotatedSize(const T &in, Poppler::Page::Rotation rot)
PDFPage::PDFPage(QWidget *parent)
: QWidget(parent)
, m_page(nullptr)
, m_scaleFactor(1.0)
, m_rotation(Poppler::Page::Rotate0)
, m_scaleFactor(1.0)
{
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
setMouseTracking(true);