Commit ff8b621b authored by rltoscano@google.com's avatar rltoscano@google.com

Handle null or empty page normalized string.


BUG=133766


Review URL: https://chromiumcodereview.appspot.com/10823173

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150017 0039d316-1c4b-4281-b951-d872f2087c98
parent 1302a1a6
...@@ -567,7 +567,11 @@ cr.define('print_preview', function() { ...@@ -567,7 +567,11 @@ cr.define('print_preview', function() {
this.pageOffset_ = new print_preview.Coordinate2d( this.pageOffset_ = new print_preview.Coordinate2d(
this.plugin_.pageXOffset(), this.plugin_.pageYOffset()); this.plugin_.pageXOffset(), this.plugin_.pageYOffset());
} }
var normalized = this.plugin_.getPageLocationNormalized().split(';'); var pageLocationNormalizedStr = this.plugin_.getPageLocationNormalized();
if (!pageLocationNormalizedStr) {
return;
}
var normalized = pageLocationNormalizedStr.split(';');
var pluginWidth = this.plugin_.getWidth(); var pluginWidth = this.plugin_.getWidth();
var pluginHeight = this.plugin_.getHeight(); var pluginHeight = this.plugin_.getHeight();
var translationTransform = new print_preview.Coordinate2d( var translationTransform = new print_preview.Coordinate2d(
......
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