Fix slide position overriding when it shouldn't (#1023)
* Fix slide position overriding when it shouldn't * Cover all positions instead
This commit is contained in:
		
							parent
							
								
									640b026534
								
							
						
					
					
						commit
						4129c1ffda
					
				@ -82,18 +82,14 @@ BackgroundPosition AOApplication::get_pos_path(const QString &pos)
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  // witness is default if pos is invalid
 | 
					  // witness is default if pos is invalid
 | 
				
			||||||
  QString f_pos = pos;
 | 
					  QString f_pos = pos;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // legacy overrides for new format if found
 | 
					  // legacy overrides for new format if found
 | 
				
			||||||
  if (pos == "def" && file_exists(get_image_suffix(get_background_path("court"))))
 | 
					  if (file_exists(get_image_suffix(get_background_path("court"))))
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    f_pos = "court:def";
 | 
					    if (!read_design_ini("court:" + f_pos + "/origin", get_background_path("design.ini")).isEmpty())
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      f_pos = QString("court:%1").arg(f_pos);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  else if (pos == "pro" && file_exists(get_image_suffix(get_background_path("court"))))
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    f_pos = "court:pro";
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  else if (pos == "wit" && file_exists(get_image_suffix(get_background_path("court"))))
 | 
					 | 
				
			||||||
  {
 | 
					 | 
				
			||||||
    f_pos = "court:wit";
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  QStringList f_pos_split = f_pos.split(":");
 | 
					  QStringList f_pos_split = f_pos.split(":");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user