Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround if layout result is invalid #482

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

MatkovIvan
Copy link
Member

Proposed Changes

Add extra checks to avoid crash in case of layout result. The root problem will be fixed later.

Testing

fun main() = singleWindowApplication {
    SelectionContainer {
        Text(
            text = buildAnnotatedString {
                append("🦊")
                addStyle(SpanStyle(Color.Red), 1, 2)
            }
        )
    }
}

@MatkovIvan MatkovIvan merged commit 24ce9ef into jb-main Apr 4, 2023
@MatkovIvan MatkovIvan deleted the ivan.matkov/invalid-layout-result branch April 4, 2023 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants