rem: if ( print_orientation == gPrintSettingsInterface.kPortraitOrientation ) { dialog.orientation.selectedIndex = 0; 
add: if (print_orientation == gPrintSettingsInterface.kPortraitOrientation) { gDialog.orientation.selectedIndex = 0; 
context: function loadDialog(){  var print_paper_type    = 0;  var print_paper_unit    = 0;  var print_paper_width   = 0.0;  var print_paper_height  = 0.0;  var print_orientation   = 0;  var print_margin_top    = 0.5;  var print_margin_left   = 0.5;  var print_margin_bottom = 0.5;  var print_margin_right  = 0.5;  if (printSettings) {    print_paper_type   = printSettings.paperSizeType;    print_paper_unit   = printSettings.paperSizeUnit;    print_paper_width  = printSettings.paperWidth;    print_paper_height = printSettings.paperHeight;    print_orientation  = printSettings.orientation;    print_margin_top    = printSettings.marginTop;    print_margin_left   = printSettings.marginLeft;    print_margin_right  = printSettings.marginRight;    print_margin_bottom = printSettings.marginBottom;  }  if (doDebug) {    dump("paperSizeType "+print_paper_unit+"\n");    dump("paperWidth    "+print_paper_width+"\n");    dump("paperHeight   "+print_paper_height+"\n");    dump("orientation   "+print_orientation+"\n");    dump("print_margin_top    "+print_margin_top+"\n");    dump("print_margin_left   "+print_margin_left+"\n");    dump("print_margin_right  "+print_margin_right+"\n");    dump("print_margin_bottom "+print_margin_bottom+"\n");  }  createPaperArray();  var selectedInx = 0;  for (var i=0;i<paperArray.length;i++) {    if (print_paper_width == paperArray[i].width && print_paper_height == paperArray[i].height) {      selectedInx = i;      break;    }  }  createPaperSizeList(selectedInx);  dialog.printBGColors.checked = printSettings.printBGColors;  dialog.printBGImages.checked = printSettings.printBGImages;  if ( print_orientation == gPrintSettingsInterface.kPortraitOrientation ) {    dialog.orientation.selectedIndex = 0;  } else if ( print_orientation == gPrintSettingsInterface.kLandscapeOrientation ) {    dialog.orientation.selectedIndex = 1;  }  dialog.topInput.value    = getDoubleStr(print_margin_top, 1);  dialog.bottomInput.value = getDoubleStr(print_margin_bottom, 1);  dialog.leftInput.value   = getDoubleStr(print_margin_left, 1);  dialog.rightInput.value  = getDoubleStr(print_margin_right, 1);  dialog.hLeftInput.value   = printSettings.headerStrLeft;  dialog.hCenterInput.value = printSettings.headerStrCenter;  dialog.hRightInput.value  = printSettings.headerStrRight;  dialog.fLeftInput.value   = printSettings.footerStrLeft;  dialog.fCenterInput.value = printSettings.footerStrCenter;  dialog.fRightInput.value  = printSettings.footerStrRight;  dialog.scalingInput.value  = getDoubleStr(printSettings.scaling * 100.0, 3);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1fde5f13f3ec7880ec55d21c00cfccab6c2f05ce/printPageSetup.js/clean/xpfe/global/resources/content/printPageSetup.js