mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	PixelPaint: Restore image size from snapshots
This will make undoing a resize or rotate operation actually restore the size of the image as well.
This commit is contained in:
		
							parent
							
								
									d5979516b4
								
							
						
					
					
						commit
						32b73dd4af
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -265,6 +265,8 @@ ErrorOr<void> Image::restore_snapshot(Image const& snapshot) | |||
|     if (!layer_selected) | ||||
|         select_layer(&layer(0)); | ||||
| 
 | ||||
|     m_size = snapshot.size(); | ||||
|     did_change_rect(); | ||||
|     did_modify_layer_stack(); | ||||
|     return {}; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling