On 09/04/2012 08:25 PM, Guillaume Seren wrote:
> On 04/09/2012 19:13, Julian Taylor wrote:
>> can try with a clean configuration file?
>> mv ~/.config/KeePass/KeePass.config.xml
>> ~/.config/KeePass/KeePass.config.xml.bak
> I rename, the configuration as you say, and this is working again,
> I did not think about it, because I did not change anything inside,
> since a long time, and it was working with that configuration,
> maybe a param in the configuration file witch is not valid anymore.
> 

Glad it works again.
keepass stores the last window size in its configuration, you probably
made the window very small in horizontal direction.
This causes a bug in mono when it tries to display the main listview.

A workaround in keepass would be to enforce a minimum size of the
associated splitter. I forwarded attached patch to upstream.
diff --git a/KeePass/Forms/MainForm.cs b/KeePass/Forms/MainForm.cs
index bc4b9d1..609a98f 100644
--- a/KeePass/Forms/MainForm.cs
+++ b/KeePass/Forms/MainForm.cs
@@ -323,8 +323,9 @@ namespace KeePass.Forms
 			{
 				float fSplitPos = mw.SplitterHorizontalFrac;
 				if(fSplitPos == float.Epsilon) fSplitPos = 0.8333f;
-				m_splitHorizontal.SplitterDistance = (int)Math.Round(fSplitPos *
-					(double)m_splitHorizontal.Height);
+				int fSplitDist = (int)Math.Round(fSplitPos *
+				                                 (double)m_splitHorizontal.Height);
+				m_splitHorizontal.SplitterDistance = Math.Max(35, fSplitDist);
 
 				fSplitPos = mw.SplitterVerticalFrac;
 				if(fSplitPos == float.Epsilon) fSplitPos = 0.25f;

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to