Debugger: Fixed crash when displaying tooltip when text zoom is not set to 100%
This commit is contained in:
parent
d179b5e7d1
commit
f19242be45
2 changed files with 3 additions and 8 deletions
|
@ -69,12 +69,6 @@ namespace Mesen.GUI.Debugger
|
|||
}
|
||||
}
|
||||
|
||||
private void UpdateConfig()
|
||||
{
|
||||
this.SetConfig(_config);
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
protected override ctrlScrollableTextbox ScrollableTextbox
|
||||
{
|
||||
get { return this.ctrlCodeViewer; }
|
||||
|
@ -450,7 +444,7 @@ namespace Mesen.GUI.Debugger
|
|||
private void ctrlCodeViewer_TextZoomChanged(object sender, EventArgs e)
|
||||
{
|
||||
_config.TextZoom = this.ctrlCodeViewer.TextZoom;
|
||||
UpdateConfig();
|
||||
ConfigManager.ApplyChanges();
|
||||
}
|
||||
|
||||
public void EditSubroutine()
|
||||
|
|
|
@ -156,9 +156,10 @@ namespace Mesen.GUI.Debugger
|
|||
get { return this._textZoom; }
|
||||
set
|
||||
{
|
||||
if(value >= 30 && value <= 500) {
|
||||
if(value != _textZoom && value >= 30 && value <= 500) {
|
||||
this._textZoom = value;
|
||||
UpdateFont();
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue