Do not allow 0 font size

git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@445 df292f66-193f-0410-a5fc-6d59da041ff2
master
Kenny Root 2009-12-18 06:23:52 +00:00
parent 0aae5eaa71
commit f258841d5a
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.connectbot"
android:versionName="1.6-dev"
android:versionCode="222">
android:versionCode="223">
<application
android:icon="@drawable/icon"

View File

@ -209,7 +209,7 @@ public class TerminalBridge implements VDUDisplay, OnKeyListener {
fontSizeChangedListeners = new LinkedList<FontSizeChangedListener>();
int hostFontSize = host.getFontSize();
if (hostFontSize < 0)
if (hostFontSize <= 0)
hostFontSize = DEFAULT_FONT_SIZE;
setFontSize(hostFontSize);