Bug 387756 Unable to turn off the wrap setting in the find dialog r=gavin

This commit is contained in:
neil@parkwaycc.co.uk 2007-07-13 09:04:33 -07:00
parent 5dc4edef75
commit db64d03233
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ function fillDialog()
// this is necessary for window.find()
dialog.findKey.value = gFindInst.searchString ? gFindInst.searchString : findService.searchString;
dialog.caseSensitive.checked = gFindInst.matchCase ? gFindInst.matchCase : findService.matchCase;
// Don't initialize Wrap here, we just want it to be checked.
dialog.wrap.checked = gFindInst.wrapFind ? gFindInst.wrapFind : findService.wrapFind;
var findBackwards = gFindInst.findBackwards ? gFindInst.findBackwards : findService.findBackwards;
if (findBackwards)
dialog.rg.selectedItem = dialog.up;

View File

@ -48,7 +48,7 @@
nsFindService::nsFindService()
: mFindBackwards(PR_FALSE)
, mWrapFind(PR_FALSE)
, mWrapFind(PR_TRUE)
, mEntireWord(PR_FALSE)
, mMatchCase(PR_FALSE)
{