mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	PixelPaint: Use image coordinates for bucket tool bounds checking
Previously, layer coordinates were being used to check whether the bucket tool was within the bounds of the current selection, rather than image coordinates.
This commit is contained in:
		
							parent
							
								
									e8d5e938de
								
							
						
					
					
						commit
						cc18d6fd25
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -50,7 +50,7 @@ void BucketTool::on_mousedown(Layer* layer, MouseEvent& event) | |||
|     if (!layer->rect().contains(layer_event.position())) | ||||
|         return; | ||||
| 
 | ||||
|     if (auto selection = layer->image().selection(); !selection.is_empty() && !selection.is_selected(layer_event.position())) | ||||
|     if (auto selection = layer->image().selection(); !selection.is_empty() && !selection.is_selected(event.image_event().position())) | ||||
|         return; | ||||
| 
 | ||||
|     GUI::Painter painter(layer->get_scratch_edited_bitmap()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Ledbetter
						Tim Ledbetter