background: Avoid the size changing when changing preview
The gnome_wp_item_update_size() code was working off old data. We need to copy the height and width as well if we want it to match the current background. The next call to _update_size() will fill in ->size if it wasn't already set.
This commit is contained in:
parent
391cb33829
commit
59f84a7088
1 changed files with 3 additions and 0 deletions
|
@ -368,6 +368,9 @@ update_preview (CcBackgroundPanelPrivate *priv,
|
|||
priv->current_background->options = item->options;
|
||||
priv->current_background->shade_type = item->shade_type;
|
||||
|
||||
priv->current_background->height = item->height;
|
||||
priv->current_background->width = item->width;
|
||||
|
||||
gnome_wp_item_ensure_gnome_bg (priv->current_background);
|
||||
gnome_wp_item_update_size (priv->current_background, priv->thumb_factory);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue