metadata: Merge memory_format correctly
This commit is contained in:
parent
8ddaf34e87
commit
7e227097ef
2 changed files with 5 additions and 0 deletions
|
|
@ -110,6 +110,9 @@ impl Metadata {
|
|||
if self.frame_info.is_none() {
|
||||
self.frame_info = other.frame_info;
|
||||
}
|
||||
if self.memory_format.is_none() {
|
||||
self.memory_format = other.memory_format;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn mime_type(&self) -> Option<String> {
|
||||
|
|
|
|||
|
|
@ -58,6 +58,8 @@ impl imp::LpImage {
|
|||
pub async fn background_color_guess(&self) -> Option<gdk::RGBA> {
|
||||
let obj = self.obj();
|
||||
|
||||
log::debug!("Determining background color");
|
||||
|
||||
if self.fixed_background_color.borrow().is_some() {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue