summaryrefslogtreecommitdiff
authorwazlaf <wazlaf>2002-10-13 11:19:40 (UTC)
committer wazlaf <wazlaf>2002-10-13 11:19:40 (UTC)
commit901531f0afcd36e5260cc4b452dde359d82bce85 (patch) (side-by-side diff)
tree9030a524f15b05f204a02eadfcd36ba170060b30
parentfb76065a9041fb9c0fef43127509dcdb2478c1ab (diff)
downloadopie-901531f0afcd36e5260cc4b452dde359d82bce85.zip
opie-901531f0afcd36e5260cc4b452dde359d82bce85.tar.gz
opie-901531f0afcd36e5260cc4b452dde359d82bce85.tar.bz2
segfault fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_widget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/emulation_widget.cpp b/noncore/apps/opie-console/emulation_widget.cpp
index 318d7bb..e11c5e4 100644
--- a/noncore/apps/opie-console/emulation_widget.cpp
+++ b/noncore/apps/opie-console/emulation_widget.cpp
@@ -5,55 +5,55 @@
#include "profile.h"
// qt includes
#include <qwidget.h>
#include <qarray.h>
#include <qstring.h>
#include <qpainter.h>
#include <qrect.h>
#include <qscrollbar.h>
#define rimX 0 // left/right rim width
#define rimY 0 // top/bottom rim high
#define SCRWIDTH 16 // width of scrollbar
EmulationWidget::EmulationWidget( const Profile& config, QWidget *parent, const char* name ) : WidgetLayer( config, parent, name )
{
// initialize font attributes
QFontMetrics fm( font() );
f_height = fm.height();
f_width = fm.maxWidth();
f_ascent = fm.ascent();
- // give reasonable defaults to m_columns, m_lines
- calcGeometry();
-
// initialize scrollbar related vars
m_scrollbar = new QScrollBar( this );
m_scrollbar->setCursor( arrowCursor );
+ // give reasonable defaults to m_columns, m_lines
+ calcGeometry();
+
// load config
reloadConfig( config );
m_resizing = false;
}
void EmulationWidget::reloadConfig( const Profile& config )
{
// nothing yet
}
EmulationWidget::~EmulationWidget()
{
//clean up
}
static QChar vt100extended(QChar c)
{
switch (c.unicode())
{
case 0x25c6 : return 1;
case 0x2592 : return 2;
case 0x2409 : return 3;