Commit 8839ea10 authored by Oliver Sander's avatar Oliver Sander

Fix return value of PageView::capabilityFlags

The return type of that method is Okular::View::CapabilityFlags.
Hence, returning 'nullptr' as was done previously cannot be correct,
and 'NoFlag' should be used instead.  As both evaluate to '0'
internally there should not be any functional difference.
parent 425a6aa4
......@@ -1558,7 +1558,7 @@ Okular::View::CapabilityFlags PageView::capabilityFlags( ViewCapability capabili
case TrimMargins:
return CapabilityRead | CapabilityWrite | CapabilitySerializable;
return nullptr;
return NoFlag;
QVariant PageView::capability( ViewCapability capability ) const
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