mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Fixed get_zoom_to_bounding_box_factor on linux
This commit is contained in:
		
							parent
							
								
									eeb436931b
								
							
						
					
					
						commit
						e93391e0f8
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -688,6 +688,9 @@ sub select_view { | ||||||
| 
 | 
 | ||||||
| sub get_zoom_to_bounding_box_factor { | sub get_zoom_to_bounding_box_factor { | ||||||
|     my ($self, $bb) = @_; |     my ($self, $bb) = @_; | ||||||
|  |      | ||||||
|  |     return undef if (! $self->init); | ||||||
|  |      | ||||||
|     my $max_bb_size = max(@{ $bb->size }); |     my $max_bb_size = max(@{ $bb->size }); | ||||||
|     return undef if ($max_bb_size == 0); |     return undef if ($max_bb_size == 0); | ||||||
|          |          | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri