*/}}
瀏覽代碼

Prevent right click log crashes

YimingWu 3 月之前
父節點
當前提交
4a9590d172
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      resources/la_templates.c

+ 1 - 0
resources/la_templates.c

@@ -1183,6 +1183,7 @@ void laui_ResourceFolderItem(laUiList *uil, laPropPack *Base, laPropPack *Operat
 }
 
 void laui_LogItem(laUiList *uil, laPropPack *Base, laPropPack *OperatorInst, laColumn *ExtraColumns, int context){
+    if(!ExtraColumns){ ExtraColumns=laFirstColumn(uil); }
     laShowItem(uil, ExtraColumns, Base, "content")->Flags|=LA_TEXT_LINE_WRAP|LA_TEXT_USE_NEWLINE|LA_TEXT_MONO|LA_UI_FLAGS_NO_TOOLTIP;
 }