summaryrefslogtreecommitdiff
path: root/wikipedia/src/views/title_label_view.js
diff options
context:
space:
mode:
Diffstat (limited to 'wikipedia/src/views/title_label_view.js')
-rw-r--r--wikipedia/src/views/title_label_view.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/wikipedia/src/views/title_label_view.js b/wikipedia/src/views/title_label_view.js
index 336492c..e91e671 100644
--- a/wikipedia/src/views/title_label_view.js
+++ b/wikipedia/src/views/title_label_view.js
@@ -55,8 +55,10 @@ const TitleLabelView = new Lang.Class({
vfunc_size_allocate: function(allocation) {
this.parent(allocation);
- this._updateImage(Utils.resourceUriToPath(this._image_uri),
- allocation.width, allocation.height);
+ if(this._image_uri !== "" && this._image_uri != null) {
+ this._updateImage(Utils.resourceUriToPath(this._image_uri),
+ allocation.width, allocation.height);
+ }
},
// PROPERTIES