Kaydet (Commit) 9f8e640e authored tarafından Caolán McNamara's avatar Caolán McNamara

these are SwTwips, currently INVALID_TWIPS == LONG_MAX, so use INVALID_TWIPS

Change-Id: Icf04a8fefd74033a80294ad7e8012f22f1db47ba
Reviewed-on: https://gerrit.libreoffice.org/32055Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6ee75be6
......@@ -882,10 +882,10 @@ void SwDoc::CheckDefaultPageFormat()
const SwFormatFrameSize& rMasterSize = rMaster.GetFrameSize();
const SwFormatFrameSize& rLeftSize = rLeft.GetFrameSize();
const bool bSetSize = LONG_MAX == rMasterSize.GetWidth() ||
LONG_MAX == rMasterSize.GetHeight() ||
LONG_MAX == rLeftSize.GetWidth() ||
LONG_MAX == rLeftSize.GetHeight();
const bool bSetSize = INVALID_TWIPS == rMasterSize.GetWidth() ||
INVALID_TWIPS == rMasterSize.GetHeight() ||
INVALID_TWIPS == rLeftSize.GetWidth() ||
INVALID_TWIPS == rLeftSize.GetHeight();
if ( bSetSize )
lcl_DefaultPageFormat( rDesc.GetPoolFormatId(), rDesc.GetMaster(), rDesc.GetLeft(), rDesc.GetFirstMaster(), rDesc.GetFirstLeft() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment