Skip to content

Commit ef5fca2

Browse files
committed
Small fix for draggable int component
1 parent a3a7025 commit ef5fca2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/Components/DraggableNumber.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ void DraggableNumber::setText(String const& newText, NotificationType notificati
7979
hideEditor(true);
8080

8181
currentValue = newText;
82-
if(!currentValue.contains("."))
82+
83+
if(!currentValue.contains(".") && dragMode != Integer)
8384
currentValue += ".";
8485

8586
repaint();

0 commit comments

Comments
 (0)