Skip to content

Commit 717b7fc

Browse files
committed
Fix incorrect condition
1 parent 6a0b06c commit 717b7fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
698698
history.beforeTextChanged(this@AztecText)
699699
}
700700
wasStyleRemoved = blockFormatter.tryRemoveBlockStyleFromFirstLine()
701-
if (shouldAddMediaInline) {
701+
if (!shouldAddMediaInline) {
702702
blockFormatter.moveSelectionIfImageSelected()
703703
}
704704

0 commit comments

Comments
 (0)