[Roam-commit] SF.net SVN: roam:[134] Trunk/Source
Status: Alpha
Brought to you by:
jonfroehlich
|
From: <jon...@us...> - 2008-09-24 05:23:02
|
Revision: 134
http://roam.svn.sourceforge.net/roam/?rev=134&view=rev
Author: jonfroehlich
Date: 2008-09-24 05:22:52 +0000 (Wed, 24 Sep 2008)
Log Message:
-----------
fixed GraphicUtils.MeasureString() bug that ended in stack overflow in Roam.Common.GraphicsUtils
fixed error message in Roam.SqlCe.SqlConnectionManager when Initialize was called before Dispose
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs
Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs
Modified: Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs 2008-08-06 19:57:34 UTC (rev 133)
+++ Trunk/Source/Roam.Common/Utils/GraphicsUtils.cs 2008-09-24 05:22:52 UTC (rev 134)
@@ -163,7 +163,7 @@
//below metrics do not render correctly on the mobile device.
if (indexSpace == -1)
{
- for (int i = 0; i < sTrimmed.Length; i++)
+ for (int i = 1; i < sTrimmed.Length; i++)
{
if (g.MeasureString(sTrimmed.Substring(0, i), font).Width < width)
{
Modified: Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs
===================================================================
--- Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-08-06 19:57:34 UTC (rev 133)
+++ Trunk/Source/Roam.SqlCe/SqlCeConnectionManager.cs 2008-09-24 05:22:52 UTC (rev 134)
@@ -112,8 +112,8 @@
{
if (_connectionPool != null)
{
- InvalidOperationException ioe =
- new InvalidOperationException("The SqlConnectionManager has already been initialized, call CloseAllConnections and then Initialize");
+ InvalidOperationException ioe =
+ new InvalidOperationException("The SqlConnectionManager has already been initialized, call Dispose and then Initialize");
_log.Error(ioe.Message, ioe);
throw ioe;
}
Modified: Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs
===================================================================
--- Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs 2008-08-06 19:57:34 UTC (rev 133)
+++ Trunk/Source/Roam.UI/Controls/ScrollableLabel.cs 2008-09-24 05:22:52 UTC (rev 134)
@@ -174,7 +174,7 @@
get { return base.BackColor; }
set
{
- if (base.BackColor != value)
+ if (base.BackColor != value || _backFill.Color != value)
{
_backFill.Color = value;
base.BackColor = value;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|