mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +00:00
Bug 433727. Make DocumentViewerImpl::GetFullZoom work when there's no presentation. r+sr=bzbarsky,a=beltzner
This commit is contained in:
parent
8b264731f0
commit
2347a6f10e
@ -2714,8 +2714,10 @@ NS_IMETHODIMP
|
||||
DocumentViewerImpl::GetFullZoom(float* aFullZoom)
|
||||
{
|
||||
NS_ENSURE_ARG_POINTER(aFullZoom);
|
||||
// Check the prescontext first because it might have a temporary
|
||||
// setting for print-preview
|
||||
nsPresContext* pc = GetPresContext();
|
||||
*aFullZoom = pc ? pc->GetFullZoom() : 1.0f;
|
||||
*aFullZoom = pc ? pc->GetFullZoom() : mPageZoom;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user