Skip to content

Commit b51e0e7

Browse files
authored
Ensure cast to ExpandableItem is possible (#1598)
1 parent da2e43f commit b51e0e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SymbolPane/Vala/ValaSymbolOutline.vala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ public class Scratch.Services.ValaSymbolOutline : Scratch.Services.SymbolOutline
147147

148148
protected override void add_tooltips (Code.Widgets.SourceList.ExpandableItem root) {
149149
foreach (var parent in root.children) {
150-
add_tooltip ((Code.Widgets.SourceList.ExpandableItem) parent);
150+
if (parent is Code.Widgets.SourceList.ExpandableItem) {
151+
add_tooltip ((Code.Widgets.SourceList.ExpandableItem) parent);
152+
}
151153
}
152154
}
153155

0 commit comments

Comments
 (0)