View Issue Details

IDProjectCategoryView StatusLast Update
0015470LazarusPatchpublic2010-01-06 15:49
ReporterJuha Manninen Assigned ToPaul Ishenin  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.29 (SVN) 
Fixed in Version0.9.29 (SVN) 
Summary0015470: Fix a potentially uninitialized variable in main.pp
DescriptionYes.
TagsNo tags attached.
Fixed in Revision23383
LazTarget-
Widgetset
Attached Files

Activities

2010-01-05 13:22

 

mainpp_diff.patch (995 bytes)   
Index: main.pp
===================================================================
--- main.pp	(revision 23381)
+++ main.pp	(working copy)
@@ -12659,15 +12659,15 @@
   AnUnitInfo:=Project1.UnitWithComponent(CurDesigner.LookupRoot);
   if AnUnitInfo<>nil then begin
     AnUnitInfo.Modified:=true;
-    if AnUnitInfo.Loaded then
-      SrcEdit:=SourceNotebook.FindSourceEditorWithPageIndex(
-                                                        AnUnitInfo.EditorIndex);
-    if SrcEdit<>nil then begin
-      SrcEdit.Modified:=true;
-      SourceNotebook.UpdateStatusBar;
-      {$IFDEF VerboseDesignerModified}
-      DumpStack;
-      {$ENDIF}
+    if AnUnitInfo.Loaded then begin
+      SrcEdit:=SourceNotebook.FindSourceEditorWithPageIndex(AnUnitInfo.EditorIndex);
+      if SrcEdit<>nil then begin
+        SrcEdit.Modified:=true;
+        SourceNotebook.UpdateStatusBar;
+        {$IFDEF VerboseDesignerModified}
+        DumpStack;
+        {$ENDIF}
+      end;
     end;
   end;
 end;
mainpp_diff.patch (995 bytes)   

Paul Ishenin

2010-01-05 14:16

manager   ~0033456

Thanks, applied.

Juha Manninen

2010-01-06 15:49

developer   ~0033479

Closing...

Issue History

Date Modified Username Field Change
2010-01-05 13:22 Juha Manninen New Issue
2010-01-05 13:22 Juha Manninen File Added: mainpp_diff.patch
2010-01-05 14:16 Paul Ishenin Fixed in Revision => 23383
2010-01-05 14:16 Paul Ishenin LazTarget => -
2010-01-05 14:16 Paul Ishenin Status new => resolved
2010-01-05 14:16 Paul Ishenin Fixed in Version => 0.9.29 (SVN)
2010-01-05 14:16 Paul Ishenin Resolution open => fixed
2010-01-05 14:16 Paul Ishenin Assigned To => Paul Ishenin
2010-01-05 14:16 Paul Ishenin Note Added: 0033456
2010-01-06 15:49 Juha Manninen Status resolved => closed
2010-01-06 15:49 Juha Manninen Note Added: 0033479