Commit 3174cc3e authored by Milian Wolff's avatar Milian Wolff

Fix wrong conditional - sorry about that :(

parent a8df8a55
......@@ -5489,11 +5489,13 @@ int KateDocument::defStyleNum(int line, int column)
return -1;
KateView* view = static_cast<KateView*>(activeView());
if (!view && !m_views.isEmpty()) {
view = m_views.first();
} else {
//FIXME: find a way to use this function without any view, or move it to the KateView.
return -1;
if (!view) {
if (!m_views.isEmpty()) {
view = m_views.first();
} else {
//FIXME: find a way to use this function without any view, or move it to the KateView.
return -1;
}
}
QList<KTextEditor::Attribute::Ptr> attributes = highlight()->attributes(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment