mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
Merge pull request #3101 from Akarshit/bugfix-exceptionOnSecondWindow
IllegalArgumentException not getting thrown when clicking in a second sketch window
This commit is contained in:
@@ -1247,7 +1247,7 @@ public class JEditTextArea extends JComponent
|
||||
newBias = true;
|
||||
}
|
||||
|
||||
if(newStart < 0 || newEnd > getDocumentLength())
|
||||
if((newStart < 0 || newEnd > getDocumentLength()) && start != end)
|
||||
{
|
||||
throw new IllegalArgumentException("Bounds out of"
|
||||
+ " range: " + newStart + "," +
|
||||
|
||||
Reference in New Issue
Block a user