mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-23 16:31:32 +00:00
Fix stack overflow (hopefully)
The code that tries to make the last column of the Symbols and References windows exactly fit the window goes into an infinite loop for everybody except me. I'm removing the feature for now.
This commit is contained in:
parent
2c6212404d
commit
76c532c6a6
@ -3536,6 +3536,7 @@ namespace SourceGen.AppForms {
|
||||
UpdateLastSymbolColumnWidth();
|
||||
}
|
||||
private void UpdateLastSymbolColumnWidth() {
|
||||
#if false
|
||||
const int ADJ = 4; // fudge factor needed to prevent horizontal scrollbar
|
||||
int leftWidths = symbolListView.Columns[0].Width + symbolListView.Columns[1].Width;
|
||||
int lastWidth = symbolListView.Size.Width - leftWidths - ADJ;
|
||||
@ -3543,6 +3544,7 @@ namespace SourceGen.AppForms {
|
||||
lastWidth = 0;
|
||||
}
|
||||
symbolListView.Columns[2].Width = lastWidth;
|
||||
#endif
|
||||
AppSettings.Global.Dirty = true;
|
||||
}
|
||||
|
||||
@ -3709,6 +3711,7 @@ namespace SourceGen.AppForms {
|
||||
UpdateLastReferencesColumnWidth();
|
||||
}
|
||||
private void UpdateLastReferencesColumnWidth() {
|
||||
#if false
|
||||
const int ADJ = 4; // fudge factor needed to prevent horizontal scrollbar
|
||||
int leftWidths = referencesListView.Columns[0].Width +
|
||||
referencesListView.Columns[1].Width;
|
||||
@ -3717,6 +3720,7 @@ namespace SourceGen.AppForms {
|
||||
lastWidth = 0;
|
||||
}
|
||||
referencesListView.Columns[2].Width = lastWidth;
|
||||
#endif
|
||||
AppSettings.Global.Dirty = true;
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ namespace SourceGen {
|
||||
static class Program {
|
||||
// Version number applied to the program as a whole.
|
||||
public static readonly CommonUtil.Version ProgramVersion =
|
||||
new CommonUtil.Version(1, 0, 0, CommonUtil.Version.PreRelType.Alpha, 1);
|
||||
new CommonUtil.Version(1, 0, 0, CommonUtil.Version.PreRelType.Alpha, 2);
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
|
Loading…
Reference in New Issue
Block a user