This commit is contained in:
Juergen Spitzmueller 2019-08-07 19:36:32 +02:00
parent 2a8c8b6345
commit 32d8e2ec93

View File

@ -2940,7 +2940,7 @@ string BufferParams::paperSizeName(PapersizePurpose purpose, string const psize)
PAPER_SIZE ppsize = psize.empty() ? papersize : papersizetranslator().find(psize);
switch (ppsize) {
case PAPER_DEFAULT:
if (documentClass().pagesize() == "custom")
if (documentClass().pagesize() == "default")
// could be anything, so don't guess
return string();
return paperSizeName(purpose, documentClass().pagesize());