mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Fix the recent windows compile error by putting newFont for case "R" in VectorRenderModule inside its own context, rather than disposing of the old font before using it as a prototype for the new.
This commit is contained in:
@@ -596,9 +596,14 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "R":
|
case "R":
|
||||||
// Font newFont = new Font(myFont, FontStyle.Regular);
|
// We need to place this newFont inside its own context so that the .NET compiler
|
||||||
myFont.Dispose();
|
// doesn't complain about a redefinition of an existing newFont, even though there is none
|
||||||
myFont = new Font(myFont, FontStyle.Regular);
|
// The mono compiler doesn't produce this error.
|
||||||
|
{
|
||||||
|
Font newFont = new Font(myFont, FontStyle.Regular);
|
||||||
|
myFont.Dispose();
|
||||||
|
myFont = newFont;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user