From 52fb9ec087ee84eaf2907dc2dee7354be7887144 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Novotn=C3=BD?= <witiko@gmail.com>
Date: Sun, 5 Jun 2016 14:24:48 +0200
Subject: [PATCH] Fixed `\thesis@pages` not working properly when
 `autoLayout=false`.

---
 fithesis.dtx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fithesis.dtx b/fithesis.dtx
index 0487006..12a5610 100644
--- a/fithesis.dtx
+++ b/fithesis.dtx
@@ -1384,6 +1384,9 @@
         \AtEndDocument{%
           \thesis@postamble
           \write\@auxout{\noexpand\gdef\noexpand\thesis@pages{\thepage}}}
+      \else
+        \AtEndDocument{%
+          \write\@auxout{\noexpand\gdef\noexpand\thesis@pages{\thepage}}}
       \fi
     \makeatother
   \fi}
-- 
GitLab