summaryrefslogtreecommitdiff
path: root/noncore/apps/oxygen
authorcniehaus <cniehaus>2003-01-03 16:07:22 (UTC)
committer cniehaus <cniehaus>2003-01-03 16:07:22 (UTC)
commit83acc7920179fba4b278bad9ba383ca8564b7278 (patch) (side-by-side diff)
treeedaf0e609a000cdb799981354cdb2bae13b6cc2a /noncore/apps/oxygen
parentdfd02afc1f3b3f0da39194d2224f56c5b7c1b12e (diff)
downloadopie-83acc7920179fba4b278bad9ba383ca8564b7278.zip
opie-83acc7920179fba4b278bad9ba383ca8564b7278.tar.gz
opie-83acc7920179fba4b278bad9ba383ca8564b7278.tar.bz2
fixing "content-bug"
Diffstat (limited to 'noncore/apps/oxygen') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index 4f990b0..be5185b 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -1,11 +1,11 @@
/***************************************************************************
application: : Oxygen
begin : September 2002
- copyright : ( C ) 2002 by Carsten Niehaus
+ copyright : ( C ) 2002, 2003 by Carsten Niehaus
email : cniehaus@handhelds.org
**************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
@@ -148,13 +148,13 @@ void PSEWidget::position(int n, int& h, int& v)
{
h=40; v=80;
}
//Potassium --> Uuo without La and Ac
- if ((n >= 19 && n <= 56) || (n >= 72 && n <= 88) || n >= 104)
+ if ((n >= 19 && n <= 57) || (n >= 72 && n <= 89) || n >= 104)
for (int i = 1; i <= 18; i++)
{
int f = n;
if (n > 18)
f = n-18;
if (n > 36)
@@ -178,21 +178,21 @@ void PSEWidget::position(int n, int& h, int& v)
if (n >= 87)
v=240;
}
//Lanthanum --> Lutetium and Actinum --> Lawrencium
- if ((n >= 57 && n <= 71) || (n >= 89 && n <= 103))
+ if ((n >= 58 && n <= 71) || (n >= 90 && n <= 103))
for (int i = 1; i <= 14; i++)
{
int f = n;
- if (n > 56)
+ if (n > 57)
f = n-55;
if (n > 88)
f = n-87;
h=(f*40);
v = 290;
- if (n >= 89)
+ if (n >= 90)
v=330;
}
v += 10;
}